Partager via


IFileSystemProvider.UnwatchAsync(WatchResult, CancellationToken) Method

Definition

Stops watching a file or directory for changes.

public:
 System::Threading::Tasks::ValueTask UnwatchAsync(Microsoft::VisualStudio::RpcContracts::FileSystem::WatchResult ^ watchResult, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.ValueTask UnwatchAsync (Microsoft.VisualStudio.RpcContracts.FileSystem.WatchResult watchResult, System.Threading.CancellationToken cancellationToken);
abstract member UnwatchAsync : Microsoft.VisualStudio.RpcContracts.FileSystem.WatchResult * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public Function UnwatchAsync (watchResult As WatchResult, cancellationToken As CancellationToken) As ValueTask

Parameters

cancellationToken
CancellationToken

The cancellation token.

Returns

A task representing the asynchronous operation.

Exceptions

watchResult is null.

watchResult doesn't correspond to a watched file or directory.

Applies to