Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PropertyDescriptor.GetValue Method

When overridden in a derived class, gets the current value of the property on a component.

[Visual Basic]
Public MustOverride Function GetValue( _
   ByVal component As Object _
) As Object
[C#]
public abstract object GetValue(
 object component
);
[C++]
public: virtual Object* GetValue(
 Object* component
) = 0;
[JScript]
public abstract function GetValue(
   component : Object
) : Object;

Parameters

component
The component with the property for which to retrieve the value.

Return Value

The value of a property for a given component.

Remarks

Typically, this method is implemented through reflection.

This method automatically calls the pre-change method, OnComponentChanging, and post-change method, OnComponentChanged, of the IComponentChangeService.

Notes to Inheritors:  When you override this method, it gets the current value of the property by invoking a "GetMyProperty" method that you need to implement. An exception in that method should pass through.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

PropertyDescriptor Class | PropertyDescriptor Members | System.ComponentModel Namespace

Show:
© 2018 Microsoft