INamedContextualOptions<TOptions,TContext>.GetAsync Methode

Definitie

Hiermee haalt u de benoemde geconfigureerde TOptions instantie op.

public:
 System::Threading::Tasks::ValueTask<TOptions> GetAsync(System::String ^ name, TContext& ^ context, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.ValueTask<TOptions> GetAsync(string name, in TContext context, System.Threading.CancellationToken cancellationToken);
abstract member GetAsync : string * 'Context * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<'Options (requires 'Options : null)>
Public Function GetAsync (name As String, context As TContext, cancellationToken As CancellationToken) As ValueTask(Of TOptions)

Parameters

name
String

De naam van de opties die u wilt ophalen.

context
TContext

De context die wordt gebruikt om de opties te maken.

cancellationToken
CancellationToken

Het token dat moet worden gecontroleerd op annuleringsaanvragen.

Retouren

ValueTask<TOptions>

Een geconfigureerd exemplaar van TOptions.

Van toepassing op