AsyncReaderWriterResourceLock<TMoniker, TResource>::GetResourceAsync Method (TMoniker, CancellationToken)

 

Microsoft internal only. Gets the resource with the specified moniker.

Namespace:   Microsoft.VisualStudio.Threading
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.

Return to top
Show: