IOptionsFactory<TOptions> 介面

定義

用來建立 TOptions 執行個體。

generic <typename TOptions>
 where TOptions : class, gcnew()public interface class IOptionsFactory
generic <typename TOptions>
 where TOptions : classpublic interface class IOptionsFactory
public interface IOptionsFactory<TOptions> where TOptions : class, new()
public interface IOptionsFactory<TOptions> where TOptions : class
type IOptionsFactory<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> = interface
type IOptionsFactory<'Options (requires 'Options : null)> = interface
Public Interface IOptionsFactory(Of TOptions)

類型參數

TOptions

要求的選項類型。

衍生

方法

Create(String)

傳回具備指定名稱的已設定 TOptions 執行個體。

適用於