IOptions<TOptions> Schnittstelle

Definition

Wird zum Abrufen konfigurierter TOptions-Instanzen verwendet.

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)

Typparameter

TOptions

Der Typ der angeforderten Optionen.

Dieser Typparameter ist kovariant. Das bedeutet, dass Sie entweder den angegebenen Typ oder einen stärker abgeleiteten Typ verwenden können. Weitere Informationen zu Kovarianz und Kontravarianz finden Sie unter Kovarianz und Kontravarianz in Generics.
Abgeleitet

Eigenschaften

Value

Ruft die konfigurierte TOptions-Standardinstanz ab.

Gilt für: