Compartir a través de


AsyncReaderWriterResourceLock<TMoniker, TResource>.GetResourceAsync Method

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

Namespace:  Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

Syntax

'Declaration
Protected MustOverride Function GetResourceAsync ( _
    resourceMoniker As TMoniker, _
    cancellationToken As CancellationToken _
) As Task(Of TResource)
protected abstract Task<TResource> GetResourceAsync(
    TMoniker resourceMoniker,
    CancellationToken cancellationToken
)
protected:
virtual Task<TResource>^ GetResourceAsync(
    TMoniker resourceMoniker, 
    CancellationToken cancellationToken
) abstract
abstract GetResourceAsync : 
        resourceMoniker:'TMoniker * 
        cancellationToken:CancellationToken -> Task<'TResource> 
protected abstract function GetResourceAsync(
    resourceMoniker : TMoniker, 
    cancellationToken : CancellationToken
) : Task<TResource>

Parameters

  • resourceMoniker
    Type: TMoniker

    The identifier for the resource.

Return Value

Type: System.Threading.Tasks.Task<TResource>
A Task<TResult> whose result is the desired resource.

.NET Framework Security

See Also

Reference

AsyncReaderWriterResourceLock<TMoniker, TResource> Class

Microsoft.VisualStudio.Threading Namespace