IOptionsFactory<TOptions> 接口

定义

用于创建 TOptions 实例。Used to create TOptions instances.

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

请求的选项的类型。The type of options being requested.

派生

方法

Create(String)

返回具有给定名称的已配置的 TOptions 实例。Returns a configured TOptions instance with the given name.

适用于