IVsAsyncFileChangeEx.SyncFileAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.