Поділитися через


IOptionsSnapshot<TOptions>.Get(String) Method

Definition

Returns a configured TOptions instance with the given name.

public TOptions Get (string? name);
abstract member Get : string -> 'Options
Public Function Get (name As String) As TOptions

Parameters

name
String

The name of the TOptions instance, if nullDefaultName is used.

Returns

TOptions

The TOptions instance that matches the given name.

Applies to