Compartir a través de


OptionsBuilder<TOptions>(IServiceCollection, String) Constructor

Definición

Constructor.

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)

Parámetros

services
IServiceCollection

El objeto IServiceCollection para las opciones que se configuran.

name
String

El nombre predeterminado de la instancia de TOptions, se usa DefaultName si es NULL.

Se aplica a