IOptionsSnapshot<TOptions>.Get(String) Method

Definition

Returns a configured TOptions instance with the given name.

public TOptions Get (string 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 DefaultName is null.

Returns

TOptions

The TOptions instance that matches the given name.

Applies to