언어

ConfigurationBinder.GetValue 메서드

정의

오버로드

속성 Description
GetValue(IConfiguration, Type, String)

지정된 키를 사용하여 값을 추출하고 지정된 형식으로 변환합니다.

GetValue(IConfiguration, Type, String, Object)

지정된 키를 사용하여 값을 추출하고 지정된 형식으로 변환합니다.

GetValue<T>(IConfiguration, String)

지정된 키를 사용하여 값을 추출하고 T 형식으로 변환합니다.

GetValue<T>(IConfiguration, String, T)

지정된 키를 사용하여 값을 추출하고 T 형식으로 변환합니다.

GetValue(IConfiguration, Type, String)

Source:
ConfigurationBinder.cs
Source:
ConfigurationBinder.cs
Source:
ConfigurationBinder.cs
Source:
ConfigurationBinder.cs

지정된 키를 사용하여 값을 추출하고 지정된 형식으로 변환합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Object ^ GetValue(Microsoft::Extensions::Configuration::IConfiguration ^ configuration, Type ^ type, System::String ^ key);
[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? GetValue(this Microsoft.Extensions.Configuration.IConfiguration configuration, Type type, string key);
public static object? GetValue(this Microsoft.Extensions.Configuration.IConfiguration configuration, Type type, string key);
[<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 GetValue : Microsoft.Extensions.Configuration.IConfiguration * Type * string -> obj
static member GetValue : Microsoft.Extensions.Configuration.IConfiguration * Type * string -> obj
<Extension()>
Public Function GetValue (configuration As IConfiguration, type As Type, key As String) As Object

매개 변수

configuration
IConfiguration

구성입니다.

type
Type

값을 변환할 형식입니다.

key
String

변환할 구성 섹션 값의 키입니다.

반품

변환된 값입니다.

특성

적용 대상

GetValue(IConfiguration, Type, String, Object)

Source:
ConfigurationBinder.cs
Source:
ConfigurationBinder.cs
Source:
ConfigurationBinder.cs
Source:
ConfigurationBinder.cs

지정된 키를 사용하여 값을 추출하고 지정된 형식으로 변환합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Object ^ GetValue(Microsoft::Extensions::Configuration::IConfiguration ^ configuration, Type ^ type, System::String ^ key, System::Object ^ defaultValue);
[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? GetValue(this Microsoft.Extensions.Configuration.IConfiguration configuration, Type type, string key, object? defaultValue);
public static object? GetValue(this Microsoft.Extensions.Configuration.IConfiguration configuration, Type type, string key, object? defaultValue);
[<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 GetValue : Microsoft.Extensions.Configuration.IConfiguration * Type * string * obj -> obj
static member GetValue : Microsoft.Extensions.Configuration.IConfiguration * Type * string * obj -> obj
<Extension()>
Public Function GetValue (configuration As IConfiguration, type As Type, key As String, defaultValue As Object) As Object

매개 변수

configuration
IConfiguration

구성입니다.

type
Type

값을 변환할 형식입니다.

key
String

변환할 구성 섹션 값의 키입니다.

defaultValue
Object

값을 찾을 수 없는 경우 사용할 기본값입니다.

반품

변환된 값입니다.

특성

적용 대상

GetValue<T>(IConfiguration, String)

Source:
ConfigurationBinder.cs
Source:
ConfigurationBinder.cs
Source:
ConfigurationBinder.cs
Source:
ConfigurationBinder.cs

지정된 키를 사용하여 값을 추출하고 T 형식으로 변환합니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static T GetValue(Microsoft::Extensions::Configuration::IConfiguration ^ configuration, System::String ^ key);
[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? GetValue<T>(this Microsoft.Extensions.Configuration.IConfiguration configuration, string key);
public static T? GetValue<T>(this Microsoft.Extensions.Configuration.IConfiguration configuration, string key);
[<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 GetValue : Microsoft.Extensions.Configuration.IConfiguration * string -> 'T
static member GetValue : Microsoft.Extensions.Configuration.IConfiguration * string -> 'T
<Extension()>
Public Function GetValue(Of T) (configuration As IConfiguration, key As String) As T

형식 매개 변수

T

값을 변환할 형식입니다.

매개 변수

configuration
IConfiguration

구성입니다.

key
String

변환할 구성 섹션 값의 키입니다.

반품

T

변환된 값입니다.

특성

적용 대상

GetValue<T>(IConfiguration, String, T)

Source:
ConfigurationBinder.cs
Source:
ConfigurationBinder.cs
Source:
ConfigurationBinder.cs
Source:
ConfigurationBinder.cs

지정된 키를 사용하여 값을 추출하고 T 형식으로 변환합니다.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static T GetValue(Microsoft::Extensions::Configuration::IConfiguration ^ configuration, System::String ^ key, T defaultValue);
[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? GetValue<T>(this Microsoft.Extensions.Configuration.IConfiguration configuration, string key, T defaultValue);
public static T? GetValue<T>(this Microsoft.Extensions.Configuration.IConfiguration configuration, string key, T defaultValue);
[<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 GetValue : Microsoft.Extensions.Configuration.IConfiguration * string * 'T -> 'T
static member GetValue : Microsoft.Extensions.Configuration.IConfiguration * string * 'T -> 'T
<Extension()>
Public Function GetValue(Of T) (configuration As IConfiguration, key As String, defaultValue As T) As T

형식 매개 변수

T

값을 변환할 형식입니다.

매개 변수

configuration
IConfiguration

구성입니다.

key
String

변환할 구성 섹션 값의 키입니다.

defaultValue
T

값을 찾을 수 없는 경우 사용할 기본값입니다.

반품

T

변환된 값입니다.

특성

적용 대상