OptionsBuilder<TOptions>(IServiceCollection, String) Costruttore

Definizione

Costruttore.

public:
 OptionsBuilder(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name);
public OptionsBuilder (Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name);
public OptionsBuilder (Microsoft.Extensions.DependencyInjection.IServiceCollection services, string? name);
new Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> : Microsoft.Extensions.DependencyInjection.IServiceCollection * string -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)>
Public Sub New (services As IServiceCollection, name As String)

Parametri

services
IServiceCollection

IServiceCollection per le opzioni da configurare.

name
String

Nome predefinito dell'istanza di TOptions, in caso di DefaultName Null.

Si applica a