Breyta

Deila með


PropertyDescriptor.GetValue(Object) Method

Definition

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

public:
 abstract System::Object ^ GetValue(System::Object ^ component);
public abstract object GetValue (object component);
public abstract object? GetValue (object? component);
abstract member GetValue : obj -> obj
Public MustOverride Function GetValue (component As Object) As Object

Parameters

component
Object

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

Returns

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 Implementers

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.

Applies to