Share via


ConfigureNamedOptions<TOptions,TDep> Sınıf

Tanım

uygulamasının uygulanması IConfigureNamedOptions<TOptions>.

generic <typename TOptions, typename TDep>
 where TOptions : class where TDep : classpublic ref class ConfigureNamedOptions : Microsoft::Extensions::Options::IConfigureNamedOptions<TOptions>, Microsoft::Extensions::Options::IConfigureOptions<TOptions>
public class ConfigureNamedOptions<TOptions,TDep> : Microsoft.Extensions.Options.IConfigureNamedOptions<TOptions>, Microsoft.Extensions.Options.IConfigureOptions<TOptions> where TOptions : class where TDep : class
type ConfigureNamedOptions<'Options, 'Dep (requires 'Options : null and 'Dep : null)> = class
    interface IConfigureNamedOptions<'Options (requires 'Options : null)>
    interface IConfigureOptions<'Options (requires 'Options : null)>
Public Class ConfigureNamedOptions(Of TOptions, TDep)
Implements IConfigureNamedOptions(Of TOptions), IConfigureOptions(Of TOptions)

Tür Parametreleri

TOptions

Yapılandırılan seçenekler türü.

TDep

Bağımlılık türü.

Devralma
ConfigureNamedOptions<TOptions,TDep>
Uygulamalar

Oluşturucular

ConfigureNamedOptions<TOptions,TDep>(String, TDep, Action<TOptions,TDep>)

Oluşturucu.

Özellikler

Action

Yapılandırma eylemi.

Dependency

Bağımlılık.

Name

Seçeneklerin adı.

Yöntemler

Configure(String, TOptions)

Eşleşirse kayıtlı yapılandırmayı Actionname çağırır.

Configure(TOptions)

ile bir TOptions örneği yapılandırmak için çağrılır DefaultName.

Equals(Object)

Belirtilen nesnenin geçerli nesneye eşit olup olmadığını belirler.

(Devralındığı yer: Object)
GetHashCode()

Varsayılan karma işlevi işlevi görür.

(Devralındığı yer: Object)
GetType()

Type Geçerli örneğini alır.

(Devralındığı yer: Object)
MemberwiseClone()

Geçerli Objectöğesinin sığ bir kopyasını oluşturur.

(Devralındığı yer: Object)
ToString()

Geçerli nesneyi temsil eden dizeyi döndürür.

(Devralındığı yer: Object)

Şunlara uygulanır