Condividi tramite


NamedConfigureFromConfigurationOptions<TOptions> Class

Definition

Configures an option instance by using Bind(IConfiguration, Object) against an IConfiguration.

generic <typename TOptions>
 where TOptions : classpublic ref class NamedConfigureFromConfigurationOptions : Microsoft::Extensions::Options::ConfigureNamedOptions<TOptions>
public class NamedConfigureFromConfigurationOptions<TOptions> : Microsoft.Extensions.Options.ConfigureNamedOptions<TOptions> where TOptions : class
type NamedConfigureFromConfigurationOptions<'Options (requires 'Options : null)> = class
    inherit ConfigureNamedOptions<'Options (requires 'Options : null)>
Public Class NamedConfigureFromConfigurationOptions(Of TOptions)
Inherits ConfigureNamedOptions(Of TOptions)

Type Parameters

TOptions

The type of options to bind.

Inheritance
NamedConfigureFromConfigurationOptions<TOptions>

Constructors

NamedConfigureFromConfigurationOptions<TOptions>(String, IConfiguration, Action<BinderOptions>)

Constructor that takes the IConfiguration instance to bind against.

NamedConfigureFromConfigurationOptions<TOptions>(String, IConfiguration)

Constructor that takes the IConfiguration instance to bind against.

Properties

Action

The configuration action.

(Inherited from ConfigureNamedOptions<TOptions>)
Name

The options name.

(Inherited from ConfigureNamedOptions<TOptions>)

Methods

Configure(String, TOptions)

Invokes the registered configure Action if the name matches.

(Inherited from ConfigureNamedOptions<TOptions>)
Configure(TOptions)

Invoked to configure a TOptions instance with the DefaultName.

(Inherited from ConfigureNamedOptions<TOptions>)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to