IVsAsyncFileChangeEx.UnadviseDirChangeAsync(UInt32, 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.
Removes a subscription to changes for a directory.
public System.Threading.Tasks.Task<string> UnadviseDirChangeAsync (uint cookie, System.Threading.CancellationToken cancellationToken = default);
abstract member UnadviseDirChangeAsync : uint32 * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function UnadviseDirChangeAsync (cookie As UInteger, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)
Parameters
- cookie
- UInt32
The file subscription cookie.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
A task that will complete once the subscription has been removed. The task's result will be the name of the unsubscribed directory.
Remarks
This method is safe to access from any thread.