AsyncReaderWriterResourceLock<TMoniker, TResource>::GetResourceAsync Method (TMoniker, CancellationToken)
Visual Studio 2015
Microsoft internal only. Gets the resource with the specified moniker.
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
protected: virtual Task<TResource>^ GetResourceAsync( TMoniker resourceMoniker, CancellationToken cancellationToken ) abstract
Parameters
- resourceMoniker
-
Type:
TMoniker
The identifier for the resource.
- cancellationToken
-
Type:
System.Threading::CancellationToken
A token whose cancellation indicates lost interest in obtaining the resource
Return Value
Type: System.Threading.Tasks::Task<TResource>^A Task<TResult> whose result is the desired resource.
Show: