Udostępnij za pośrednictwem


OptionsBuilder<TOptions>(IServiceCollection, String) Konstruktor

Definicja

Konstruktor.

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)

Parametry

services
IServiceCollection

Dla IServiceCollection skonfigurowanych opcji.

name
String

Domyślna nazwa TOptions wystąpienia, jeśli jest używana wartość null DefaultName .

Dotyczy