Share via


ElementPropertyDescriptor.ResetValue Method

Resets the value of the ___domain property.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Declaration
Public Overrides Sub ResetValue ( _
    component As Object _
)
public override void ResetValue(
    Object component
)
public:
virtual void ResetValue(
    Object^ component
) override
abstract ResetValue : 
        component:Object -> unit 
override ResetValue : 
        component:Object -> unit 
public override function ResetValue(
    component : Object
)

Parameters

  • component
    Type: System.Object
    The model element for which to reset the value of the property.

Exceptions

Exception Condition
ArgumentException

The described property is not bound to a model element and component is not derived from the ModelElement type.

Remarks

This method resets the property to its default value inside a transaction.

If the ModelElement property of the descriptor is nulla null reference (Nothing in Visual Basic), 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.

.NET Framework Security

See Also

Reference

ElementPropertyDescriptor Class

Microsoft.VisualStudio.Modeling.Design Namespace

ElementPropertyDescriptor

ModelElement

GetValue

SetValue

IsReadOnly