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.ResetValue

When overridden in a derived class, resets the value for this property of the component.

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

Parameters

component
The component with the property whose value will be reset.

Remarks

Typically, this method is implemented through reflection.

Notes to Inheritors: When overridden in a derived class, this method looks for a DefaultValueAttribute. If it finds one, it sets the value of the property to this. If this method cannot find a DefaultValueAttribute, it looks for a Reset XXX method. If it finds a Reset XXX method, it invokes it. If this method cannot find a DefaultValueAttribute or a Reset XXX method, then it does not perform an operation.

See Also

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