OptionsBuilder<TOptions>(IServiceCollection, String) OptionsBuilder<TOptions>(IServiceCollection, String) OptionsBuilder<TOptions>(IServiceCollection, String) OptionsBuilder<TOptions>(IServiceCollection, String) Constructor

Definition

Constructor.

public:
 OptionsBuilder(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::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)

Parameters

name
String String String String

The default name of the TOptions instance, if null DefaultName is used.

Applies to