Sdílet prostřednictvím


ResilienceHandlerContext.GetOptions<TOptions>(String) Metoda

Definice

Získá možnosti identifikované pomocí name.

public TOptions GetOptions<TOptions> (string? name = default);
member this.GetOptions : string -> 'Options
Public Function GetOptions(Of TOptions) (Optional name As String = Nothing) As TOptions

Parametry typu

TOptions

Typ možností

Parametry

name
String

Název možností, pokud existuje.

Návraty

TOptions

Instance možností.

Poznámky

Pokud name je null , vrátí se globální možnosti. Ve výchozím nastavení name je nullparametr .

Platí pro