IVsAsyncFileChangeEx.UnadviseDirChangesAsync Method

Definition

Removes the subscriptions to changes for multiple directories.

public System.Threading.Tasks.Task<string[]> UnadviseDirChangesAsync (System.Collections.Generic.IReadOnlyCollection<uint> cookies, System.Threading.CancellationToken cancellationToken = default);
abstract member UnadviseDirChangesAsync : System.Collections.Generic.IReadOnlyCollection<uint32> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string[]>
Public Function UnadviseDirChangesAsync (cookies As IReadOnlyCollection(Of UInteger), Optional cancellationToken As CancellationToken = Nothing) As Task(Of String())

Parameters

cookies
IReadOnlyCollection<UInt32>

The directory subscription cookies.

cancellationToken
CancellationToken

The cancellation token.

Returns

A task that will complete once the subscriptions have been removed.

Remarks

This is for reversing the effects of one or more calls to IVsFileChangeEx.AdviseDirChange.

This method is safe to access from any thread.

Applies to