ConfigurationBinder.Get メソッド

定義

オーバーロード

名前 説明
Get(IConfiguration, Type)

構成インスタンスを T 型の新しいインスタンスにバインドしようとします。この構成セクションに値がある場合は、それが使用されます。 それ以外の場合は、構成キーに対してプロパティ名を再帰的に照合してバインドします。

Get(IConfiguration, Type, Action<BinderOptions>)

構成インスタンスを T 型の新しいインスタンスにバインドしようとします。この構成セクションに値がある場合は、それが使用されます。 それ以外の場合は、構成キーに対してプロパティ名を再帰的に照合してバインドします。

Get<T>(IConfiguration)

構成インスタンスを T 型の新しいインスタンスにバインドしようとします。この構成セクションに値がある場合は、それが使用されます。 それ以外の場合は、構成キーに対してプロパティ名を再帰的に照合してバインドします。

Get<T>(IConfiguration, Action<BinderOptions>)

構成インスタンスを T 型の新しいインスタンスにバインドしようとします。この構成セクションに値がある場合は、それが使用されます。 それ以外の場合は、構成キーに対してプロパティ名を再帰的に照合してバインドします。

Get(IConfiguration, Type)

ソース:
ConfigurationBinder.cs
ソース:
ConfigurationBinder.cs
ソース:
ConfigurationBinder.cs
ソース:
ConfigurationBinder.cs

構成インスタンスを T 型の新しいインスタンスにバインドしようとします。この構成セクションに値がある場合は、それが使用されます。 それ以外の場合は、構成キーに対してプロパティ名を再帰的に照合してバインドします。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Object ^ Get(Microsoft::Extensions::Configuration::IConfiguration ^ configuration, Type ^ type);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Binding strongly typed objects to configuration values requires generating dynamic code at runtime, for example instantiating generic types.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed.")]
public static object? Get(this Microsoft.Extensions.Configuration.IConfiguration configuration, Type type);
public static object? Get(this Microsoft.Extensions.Configuration.IConfiguration configuration, Type type);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Binding strongly typed objects to configuration values requires generating dynamic code at runtime, for example instantiating generic types.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed.")>]
static member Get : Microsoft.Extensions.Configuration.IConfiguration * Type -> obj
static member Get : Microsoft.Extensions.Configuration.IConfiguration * Type -> obj
<Extension()>
Public Function Get (configuration As IConfiguration, type As Type) As Object

パラメーター

configuration
IConfiguration

バインドする構成インスタンス。

type
Type

バインドする新しいインスタンスの型。

返品

成功した場合は新しいインスタンス。それ以外の場合は null。

属性

適用対象

Get(IConfiguration, Type, Action<BinderOptions>)

ソース:
ConfigurationBinder.cs
ソース:
ConfigurationBinder.cs
ソース:
ConfigurationBinder.cs
ソース:
ConfigurationBinder.cs

構成インスタンスを T 型の新しいインスタンスにバインドしようとします。この構成セクションに値がある場合は、それが使用されます。 それ以外の場合は、構成キーに対してプロパティ名を再帰的に照合してバインドします。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Object ^ Get(Microsoft::Extensions::Configuration::IConfiguration ^ configuration, Type ^ type, Action<Microsoft::Extensions::Configuration::BinderOptions ^> ^ configureOptions);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Binding strongly typed objects to configuration values requires generating dynamic code at runtime, for example instantiating generic types.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed.")]
public static object? Get(this Microsoft.Extensions.Configuration.IConfiguration configuration, Type type, Action<Microsoft.Extensions.Configuration.BinderOptions>? configureOptions);
public static object? Get(this Microsoft.Extensions.Configuration.IConfiguration configuration, Type type, Action<Microsoft.Extensions.Configuration.BinderOptions>? configureOptions);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Binding strongly typed objects to configuration values requires generating dynamic code at runtime, for example instantiating generic types.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed.")>]
static member Get : Microsoft.Extensions.Configuration.IConfiguration * Type * Action<Microsoft.Extensions.Configuration.BinderOptions> -> obj
static member Get : Microsoft.Extensions.Configuration.IConfiguration * Type * Action<Microsoft.Extensions.Configuration.BinderOptions> -> obj
<Extension()>
Public Function Get (configuration As IConfiguration, type As Type, configureOptions As Action(Of BinderOptions)) As Object

パラメーター

configuration
IConfiguration

バインドする構成インスタンス。

type
Type

バインドする新しいインスタンスの型。

configureOptions
Action<BinderOptions>

バインダー オプションを構成します。

返品

成功した場合は新しいインスタンス。それ以外の場合は null。

属性

適用対象

Get<T>(IConfiguration)

ソース:
ConfigurationBinder.cs
ソース:
ConfigurationBinder.cs
ソース:
ConfigurationBinder.cs
ソース:
ConfigurationBinder.cs

構成インスタンスを T 型の新しいインスタンスにバインドしようとします。この構成セクションに値がある場合は、それが使用されます。 それ以外の場合は、構成キーに対してプロパティ名を再帰的に照合してバインドします。

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static T Get(Microsoft::Extensions::Configuration::IConfiguration ^ configuration);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Binding strongly typed objects to configuration values requires generating dynamic code at runtime, for example instantiating generic types.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed.")]
public static T? Get<T>(this Microsoft.Extensions.Configuration.IConfiguration configuration);
public static T? Get<T>(this Microsoft.Extensions.Configuration.IConfiguration configuration);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Binding strongly typed objects to configuration values requires generating dynamic code at runtime, for example instantiating generic types.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed.")>]
static member Get : Microsoft.Extensions.Configuration.IConfiguration -> 'T
static member Get : Microsoft.Extensions.Configuration.IConfiguration -> 'T
<Extension()>
Public Function Get(Of T) (configuration As IConfiguration) As T

型パラメーター

T

バインドする新しいインスタンスの型。

パラメーター

configuration
IConfiguration

バインドする構成インスタンス。

返品

T

成功した場合は T の新しいインスタンス。それ以外の場合は default(T)。

属性

適用対象

Get<T>(IConfiguration, Action<BinderOptions>)

ソース:
ConfigurationBinder.cs
ソース:
ConfigurationBinder.cs
ソース:
ConfigurationBinder.cs
ソース:
ConfigurationBinder.cs

構成インスタンスを T 型の新しいインスタンスにバインドしようとします。この構成セクションに値がある場合は、それが使用されます。 それ以外の場合は、構成キーに対してプロパティ名を再帰的に照合してバインドします。

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static T Get(Microsoft::Extensions::Configuration::IConfiguration ^ configuration, Action<Microsoft::Extensions::Configuration::BinderOptions ^> ^ configureOptions);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Binding strongly typed objects to configuration values requires generating dynamic code at runtime, for example instantiating generic types.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed.")]
public static T? Get<T>(this Microsoft.Extensions.Configuration.IConfiguration configuration, Action<Microsoft.Extensions.Configuration.BinderOptions>? configureOptions);
public static T? Get<T>(this Microsoft.Extensions.Configuration.IConfiguration configuration, Action<Microsoft.Extensions.Configuration.BinderOptions>? configureOptions);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Binding strongly typed objects to configuration values requires generating dynamic code at runtime, for example instantiating generic types.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed.")>]
static member Get : Microsoft.Extensions.Configuration.IConfiguration * Action<Microsoft.Extensions.Configuration.BinderOptions> -> 'T
static member Get : Microsoft.Extensions.Configuration.IConfiguration * Action<Microsoft.Extensions.Configuration.BinderOptions> -> 'T
<Extension()>
Public Function Get(Of T) (configuration As IConfiguration, configureOptions As Action(Of BinderOptions)) As T

型パラメーター

T

バインドする新しいインスタンスの型。

パラメーター

configuration
IConfiguration

バインドする構成インスタンス。

configureOptions
Action<BinderOptions>

バインダー オプションを構成します。

返品

T

成功した場合は T の新しいインスタンス。それ以外の場合は default(T)。

属性

適用対象