Partager via


IVsAsyncFileChangeEx.IgnoreFileAsync Method

Definition

Ignores or un-ignores changes in a file or in a subscription.

public System.Threading.Tasks.Task IgnoreFileAsync (uint cookie, string filename, bool ignore, System.Threading.CancellationToken cancellationToken = default);
abstract member IgnoreFileAsync : uint32 * string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function IgnoreFileAsync (cookie As UInteger, filename As String, ignore As Boolean, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

cookie
UInt32

The cookie for the file subscription to ignore. If this is VSConstants.VSCOOKIE_NIL, then all subscriptions for filename are ignored or un-ignored. If this is any other value, then the filename parameter is not used.

filename
String

The name of the file to ignore. This parameter is not used if cookie is any value other than VSConstants.VSCOOKIE_NIL.

ignore
Boolean

True to ignore the file or subscription, false to un-ignore.

cancellationToken
CancellationToken

The cancellation token.

Returns

A task that will complete once the operation is finished.

Remarks

This method is safe to access from any thread.

Applies to