ElementPropertyDescriptor.ResetValue Method
Visual Studio 2012
Resets the value of the domain property.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
| Exception | Condition |
|---|---|
| ArgumentException | The described property is not bound to a model element and component is not derived from the ModelElement type. |
This method resets the property to its default value inside a transaction.
If the ModelElement property of the descriptor is null, then the component parameter is used as the model element on which to reset the property; otherwise, this method resets the value of the property from the model element with which it is associated. This association is formed when the property descriptor is created.
If the domain property is read-only or does not have a default value, then its value is not reset.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.