Freigeben über


IVsAsyncFileChangeEx.FilterDirectoryChangesAsync Method

Definition

Filters the notifications from directory changes.

public:
 System::Threading::Tasks::Task ^ FilterDirectoryChangesAsync(System::UInt32 cookie, cli::array <System::String ^> ^ extensions, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task FilterDirectoryChangesAsync (uint cookie, string[] extensions, System.Threading.CancellationToken cancellationToken);
abstract member FilterDirectoryChangesAsync : uint32 * string[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function FilterDirectoryChangesAsync (cookie As UInteger, extensions As String(), cancellationToken As CancellationToken) As Task

Parameters

cookie
UInt32

The directory subscription cookie.

extensions
String[]

The file extensions for which change notifications will be sent. If extensions is null or empty, all change notifications will be sent. Extensions should include the period (e.g. ".cs"). If you want to be notified of changes to files that don't have an extension, include the empty string in the extensions array.

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