Condividi tramite


IVsAsyncFileChangeEx.UnadviseFileChangeAsync Method

Definition

Removes a subscription to changes for a single file.

public System.Threading.Tasks.Task<string> UnadviseFileChangeAsync (uint cookie, System.Threading.CancellationToken cancellationToken = default);
abstract member UnadviseFileChangeAsync : uint32 * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function UnadviseFileChangeAsync (cookie As UInteger, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

cookie
UInt32

The file subscription cookie.

cancellationToken
CancellationToken

The cancellation token.

Returns

A task that will complete once the subscription has been removed. The task's result will be the name of the unsubscribed file.

Remarks

This method is safe to access from any thread.

Applies to