ElementPropertyDescriptor::SetValue Method (Object^, Object^)
Visual Studio 2015
Sets the value of the domain property.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Parameters
- component
-
Type:
System::Object^
The model element for which to set the value of the property.
- value
-
Type:
System::Object^
The value to assign to the property.
| Exception | Condition |
|---|---|
| ArgumentException | The described property is not bound to a model element and component is not derived from the ModelElement type. |
This method sets the value of the property 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 set the property value; otherwise, this method sets 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, then its value is not changed.
Show: