Compartilhar via


EditorSerializer.ReadPropertiesFromAttributes Method

Definition

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

protected:
 override void ReadPropertiesFromAttributes(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, Microsoft::VisualStudio::Modeling::ModelElement ^ element, System::Xml::XmlReader ^ reader);
protected override void ReadPropertiesFromAttributes (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, Microsoft.VisualStudio.Modeling.ModelElement element, System.Xml.XmlReader reader);
override this.ReadPropertiesFromAttributes : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.ModelElement * System.Xml.XmlReader -> unit
Protected Overrides Sub ReadPropertiesFromAttributes (serializationContext As SerializationContext, element As ModelElement, reader As XmlReader)

Parameters

serializationContext
SerializationContext

Serialization context.

element
ModelElement

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

reader
XmlReader

XmlReader to read serialized data from.

Remarks

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.

Applies to