ElementPropertyDescriptor::ShouldSerializeValue Method (Object^)
Visual Studio 2015
Indicates whether the value of the domain property should be serialized.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Parameters
- component
-
Type:
System::Object^
The domain element for which to set the value of the property.
Return Value
Type: System::Booleantrue if the value of the domain property should be serialized; otherwise, false.
By default, the property value is serialized if the value is different from the default value of the property. This behavior can be changed in a derived class.
If the ModelElement property of the descriptor is null, then the component parameter is used as the model element on which to check the property value; otherwise, this method checks the value of the property from the model element with which it is associated. This association is formed when the property descriptor is created.
Show: