Udostępnij za pośrednictwem


IVsAsyncFileChangeEx.UnadviseFileChangesAsync Method

Definition

Removes the subscriptions to changes for multiple files.

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

Parameters

cookies
IReadOnlyCollection<UInt32>

The file 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.AdviseFileChange.

This method is safe to access from any thread.

Applies to