Compartir a través de


ConfigureNamedOptions<TOptions>(String, Action<TOptions>) Constructor

Definición

Constructor.

public:
 ConfigureNamedOptions(System::String ^ name, Action<TOptions> ^ action);
public ConfigureNamedOptions (string name, Action<TOptions> action);
public ConfigureNamedOptions (string? name, Action<TOptions>? action);
new Microsoft.Extensions.Options.ConfigureNamedOptions<'Options (requires 'Options : null)> : string * Action<'Options (requires 'Options : null)> -> Microsoft.Extensions.Options.ConfigureNamedOptions<'Options (requires 'Options : null)>
Public Sub New (name As String, action As Action(Of TOptions))

Parámetros

name
String

El nombre de las opciones.

action
Action<TOptions>

La acción que se va a registrar.

Se aplica a