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

 

Microsoft internal only. Gets the lock-protected resource.

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

Return to top
Show: