OptionsFactory<TOptions> Class

Definition

Implementation of IOptionsFactory<TOptions>.

generic <typename TOptions>
 where TOptions : class, gcnew()public ref class OptionsFactory : Microsoft::Extensions::Options::IOptionsFactory<TOptions>
generic <typename TOptions>
 where TOptions : classpublic ref class OptionsFactory : Microsoft::Extensions::Options::IOptionsFactory<TOptions>
public class OptionsFactory<TOptions> : Microsoft.Extensions.Options.IOptionsFactory<TOptions> where TOptions : class, new()
public class OptionsFactory<TOptions> : Microsoft.Extensions.Options.IOptionsFactory<TOptions> where TOptions : class
type OptionsFactory<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> = class
    interface IOptionsFactory<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
type OptionsFactory<'Options (requires 'Options : null)> = class
    interface IOptionsFactory<'Options (requires 'Options : null)>
Public Class OptionsFactory(Of TOptions)
Implements IOptionsFactory(Of TOptions)

Type Parameters

TOptions

The type of options being requested.

Inheritance
OptionsFactory<TOptions>
Implements

Constructors

OptionsFactory<TOptions>(IEnumerable<IConfigureOptions<TOptions>>, IEnumerable<IPostConfigureOptions<TOptions>>)

Initializes a new instance with the specified options configurations.

OptionsFactory<TOptions>(IEnumerable<IConfigureOptions<TOptions>>, IEnumerable<IPostConfigureOptions<TOptions>>, IEnumerable<IValidateOptions<TOptions>>)

Initializes a new instance with the specified options configurations.

Methods

Create(String)

Returns a configured TOptions instance with the given name.

CreateInstance(String)

Creates a new instance of a TOptions object using the specified name.

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