IOptions<TOptions> Interfejs

Definicja

Służy do pobierania skonfigurowanych TOptions wystąpień.

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)

Parametry typu

TOptions

Typ żądanych opcji.

Ten parametr typu jest kowariantny. Oznacza to, że możesz użyć typu, który został przez Ciebie określony, lub dowolnego typu, który jest bardziej pochodny. Aby uzyskać więcej informacji o kowariancji i kontrawariancji, zobacz Kowariancja i kontrawariancja w typach ogólnych.
Pochodne

Właściwości

Value

Pobiera domyślne skonfigurowane TOptions wystąpienie.

Dotyczy