NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

PropertyDescriptor.SetValue

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
);

Parameters

component
The component with the property whose value will be set.
value
The new value.

Remarks

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.

See Also

PropertyDescriptor Class | PropertyDescriptor Members | System.ComponentModel Namespace | PropertyDescriptor