共用方式為


IExtensionMetadataService.UnsubscribeFromMetadataEventsAsync Method

Definition

Unsubscribes from events for the given section name.

public:
 System::Threading::Tasks::Task ^ UnsubscribeFromMetadataEventsAsync(System::String ^ sectionName, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task UnsubscribeFromMetadataEventsAsync (string sectionName, System.Threading.CancellationToken cancellationToken);
abstract member UnsubscribeFromMetadataEventsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function UnsubscribeFromMetadataEventsAsync (sectionName As String, cancellationToken As CancellationToken) As Task

Parameters

sectionName
String

Name of the metadata section.

cancellationToken
CancellationToken

A cancellation token to cancel the in-progress invocation.

Returns

A Task representing the asynchronous operation.

Remarks

Subscribing to the same section again will cause the initial event to be raised again and only differences after that point will be sent.

Applies to