ElementPropertyDescriptor::ShouldSerializeValue Method (Object^)

 

Indicates whether the value of the domain property should be serialized.

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

public:
virtual bool ShouldSerializeValue(
	Object^ component
) override

Parameters

component
Type: System::Object^

The domain element for which to set the value of the property.

Return Value

Type: System::Boolean

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

Return to top
Show: