AsyncReaderWriterResourceLock<TMoniker, TResource>::PrepareResourceForExclusiveAccessAsync Method (TResource, AsyncReaderWriterResourceLock<TMoniker, TResource>::LockFlags, CancellationToken)
Visual Studio 2015
Microsoft internal only. Prepares a resource for access by one thread.
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
protected: virtual Task^ PrepareResourceForExclusiveAccessAsync( TResource resource, AsyncReaderWriterResourceLock<TMoniker, TResource>::LockFlags lockFlags, CancellationToken cancellationToken ) abstract
Parameters
- resource
-
Type:
TResource
The resource.
- lockFlags
-
Type:
Microsoft.VisualStudio.Threading::AsyncReaderWriterResourceLock<TMoniker, TResource>::LockFlags
The aggregate of all flags from the active and nesting locks.
- cancellationToken
-
Type:
System.Threading::CancellationToken
The token whose cancellation signals lost interest in the resource.
Return Value
Type: System.Threading.Tasks::Task^A Task whose completion signals the resource has been prepared.
Show: