OptionsFactory<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)

類型參數

TOptions

所要求的選項類型。

繼承
OptionsFactory<TOptions>
實作

建構函式

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

使用指定的選項組態,初始化新的執行個體。

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

使用指定的選項組態,初始化新的執行個體。

方法

Create(String)

傳回具備所指定 name 的已設定 TOptions 執行個體。

CreateInstance(String)

使用所指定 name 建立 TOptions 物件的新執行個體。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於