Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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: TMonikerThe identifier for the resource.
cancellationToken
Type: System.Threading.CancellationTokenA 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.