Sdílet prostřednictvím


OptionsBuilder<TOptions>(IServiceCollection, String) Konstruktor

Definice

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

Pro IServiceCollection konfigurované možnosti.

name
String

Výchozí název TOptions instance, pokud je použita hodnota null DefaultName .

Platí pro