IVsAsyncFileChangeEx.UnadviseDirChangeAsync(UInt32, CancellationToken) Method

Definition

Removes a subscription to changes for a directory.

public System.Threading.Tasks.Task<string> UnadviseDirChangeAsync (uint cookie, System.Threading.CancellationToken cancellationToken = default);
abstract member UnadviseDirChangeAsync : uint32 * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function UnadviseDirChangeAsync (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 directory.

Remarks

This method is safe to access from any thread.

Applies to