Compartilhar via


OptionsBuilder<TOptions>(IServiceCollection, String) Construtor

Definição

Construtor.

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

O IServiceCollection para as opções que estão sendo configuradas.

name
String

O nome padrão da instância de TOptions, se DefaultName nulo for usado.

Aplica-se a