AsyncReaderWriterResourceLock<TMoniker, TResource>::ResourceReleaser::GetResourceAsync Method (TMoniker, CancellationToken)
Visual Studio 2015
Microsoft internal only. Gets the lock-protected resource.
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
public:
Task<TResource>^ GetResourceAsync(
TMoniker resourceMoniker,
CancellationToken cancellationToken = null
)
Parameters
- resourceMoniker
-
Type:
TMoniker
The identifier for the protected resource.
- cancellationToken
-
Type:
System.Threading::CancellationToken
A token whose cancellation signals lost interest in the protected resource.
Return Value
Type: System.Threading.Tasks::Task<TResource>^A Task<TResult> whose result is the resource.
Show: