IVsAsyncFileChangeEx.UnadviseFileChangeAsync 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 single file.
public System.Threading.Tasks.Task<string> UnadviseFileChangeAsync (uint cookie, System.Threading.CancellationToken cancellationToken = default);
abstract member UnadviseFileChangeAsync : uint32 * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function UnadviseFileChangeAsync (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 file.
Remarks
This method is safe to access from any thread.