IOptions<TOptions> 介面
定義
用來擷取所設定的 TOptions
執行個體。Used to retrieve configured TOptions
instances.
generic <typename TOptions>
where TOptions : class, gcnew()public interface class IOptions
generic <typename TOptions>
where TOptions : classpublic interface class IOptions
public interface IOptions<out TOptions> where TOptions : class, new()
public interface IOptions<out TOptions> where TOptions : class
type IOptions<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> = interface
type IOptions<'Options (requires 'Options : null)> = interface
Public Interface IOptions(Of Out TOptions)
類型參數
- TOptions
要求的選項類型。The type of options being requested.
這是共變數的型別參數。 也就是說,您可以使用您指定的類型,或衍生程度較高的任何類型。 如需共變數與反變數的詳細資訊,請參閱泛型中的共變數與反變數。- 衍生
屬性
Value |
取得預設的已設定 |