다음을 통해 공유


PropertyDescriptor.GetValue 메서드

파생 클래스에서 재정의된 경우 구성 요소에 대한 현재 속성 값을 가져옵니다.

네임스페이스: System.ComponentModel
어셈블리: System(system.dll)

구문

‘선언
Public MustOverride Function GetValue ( _
    component As Object _
) As Object
‘사용 방법
Dim instance As PropertyDescriptor
Dim component As Object
Dim returnValue As Object

returnValue = instance.GetValue(component)
public abstract Object GetValue (
    Object component
)
public:
virtual Object^ GetValue (
    Object^ component
) abstract
public abstract Object GetValue (
    Object component
)
public abstract function GetValue (
    component : Object
) : Object

매개 변수

  • component
    값을 검색할 속성이 포함된 구성 요소입니다.

반환 값

지정된 구성 요소에 대한 속성 값입니다.

설명

일반적으로 이 메서드는 리플렉션을 통해 구현됩니다.

이 메서드는 IComponentChangeService의 사전 변경 메서드인 OnComponentChanging과 사후 변경 메서드인 OnComponentChanged를 자동으로 호출합니다.

상속자 참고 사항 이 메서드를 재정의하면 구현에 필요한 "GetMyProperty" 메서드를 호출하여 현재 속성 값을 가져오게 됩니다. 이때 해당 메서드의 예외를 전달해야 합니다.

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

.NET Compact Framework

2.0, 1.0에서 지원

참고 항목

참조

PropertyDescriptor 클래스
PropertyDescriptor 멤버
System.ComponentModel 네임스페이스