DataBinder.GetPropertyValue 메서드

정의

속성의 값을 검색합니다.

오버로드

Name Description
GetPropertyValue(Object, String)

지정된 개체의 지정된 속성 값을 검색합니다.

GetPropertyValue(Object, String, String)

지정된 개체의 지정된 속성 값을 검색한 다음 결과의 서식을 지정합니다.

GetPropertyValue(Object, String)

지정된 개체의 지정된 속성 값을 검색합니다.

public:
 static System::Object ^ GetPropertyValue(System::Object ^ container, System::String ^ propName);
public static object GetPropertyValue(object container, string propName);
static member GetPropertyValue : obj * string -> obj
Public Shared Function GetPropertyValue (container As Object, propName As String) As Object

매개 변수

container
Object

속성을 포함하는 개체입니다.

propName
String

검색할 값이 들어 있는 속성의 이름입니다.

반품

지정된 속성의 값입니다.

예외

containernull입니다.

-또는-

propName 가거나 빈 문자열("")입니다 null .

개체에 지정 container 한 속성 propName이 없습니다.

예제

이 예제에서는 DataBinder 이 메서드를 사용하는 방법을 보여 줍니다.

설명

GetPropertyValue 메서드는 개체의 속성 값을 검색하는 데 사용됩니다.

적용 대상

GetPropertyValue(Object, String, String)

지정된 개체의 지정된 속성 값을 검색한 다음 결과의 서식을 지정합니다.

public:
 static System::String ^ GetPropertyValue(System::Object ^ container, System::String ^ propName, System::String ^ format);
public static string GetPropertyValue(object container, string propName, string format);
static member GetPropertyValue : obj * string * string -> string
Public Shared Function GetPropertyValue (container As Object, propName As String, format As String) As String

매개 변수

container
Object

속성을 포함하는 개체입니다.

propName
String

검색할 값이 들어 있는 속성의 이름입니다.

format
String

결과를 표시할 형식을 지정하는 문자열입니다.

반품

에 지정된 형식의 지정된 속성 값입니다 format.

예외

containernull입니다.

-또는-

propName 가거나 빈 문자열("")입니다 null .

개체에 지정 container 한 속성 propName이 없습니다.

예제

이 예제에서는 DataBinder 이 메서드를 사용하는 방법을 보여 줍니다.

설명

이 버전의 GetPropertyValue 메서드는 개체의 속성 값을 검색하고 서식을 지정하는 데 사용됩니다.

적용 대상