LabelShapeSerializer::ReadPropertiesFromAttributes Method (SerializationContext^, ModelElement^, XmlReader^)

 

This method deserializes all properties that are serialized as XML attributes.

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

protected:
virtual void ReadPropertiesFromAttributes(
	SerializationContext^ serializationContext,
	ModelElement^ element,
	XmlReader^ reader
) override

Parameters

serializationContext
Type: Microsoft.VisualStudio.Modeling::SerializationContext^

Serialization context.

element
Type: Microsoft.VisualStudio.Modeling::ModelElement^

In-memory LabelShape instance that will get the deserialized data.

reader
Type: System.Xml::XmlReader^

XmlReader to read serialized data from.

Because this method only handles properties serialized as XML attributes, the passed-in reader shouldn't be moved inside this method. The caller will guarantee that the reader is positioned on the open XML tag of the current element being deserialized.

Return to top
Show: