Udostępnij za pośrednictwem


IVsAsyncFileChangeEx.SyncFileAsync(String, CancellationToken) Method

Definition

Forces change events to be sent for a file.

public System.Threading.Tasks.Task SyncFileAsync (string filename, System.Threading.CancellationToken cancellationToken = default);
abstract member SyncFileAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SyncFileAsync (filename As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

filename
String

The name of the file to send notifications for.

cancellationToken
CancellationToken

The cancellation token.

Returns

A task that will complete once the notifications have been sent.

Remarks

This method is safe to access from any thread.

Applies to