When overridden in a derived class, sets the value of the component to a different value.
[Visual Basic] MustOverride Public Sub SetValue( _ ByVal component As Object, _ ByVal value As Object _ ) [C#] public abstract void SetValue( object component, object value ); [C++] public: virtual void SetValue( Object* component, Object* value ) = 0; [JScript] public abstract function SetValue( component : Object, value : Object );
Typically, this method is implemented through reflection.
Notes to Inheritors: When you override this method, it should set the value of the property by invoking the appropriate Set XXX method of the component. If the value specified is invalid, the component should throw an exception, which will be passed up. The component designer should design the property so that a Set XXX method following a Set XXX method will return the value passed in when the Set XXX method does not throw an exception.
PropertyDescriptor Class | PropertyDescriptor Members | System.ComponentModel Namespace | PropertyDescriptor