This documentation is archived and is not being maintained.

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
public abstract object GetValue(
 object component
public: virtual Object* GetValue(
 Object* component
) = 0;
public abstract function GetValue(
   component : Object
) : Object;


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

Return Value

The value of a property for a given component.


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.


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