SerializationUtilities.ReadExtensions Method

Definition

Reads extension elements from the supplied reader.

public:
 static void ReadExtensions(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, System::Xml::XmlReader ^ reader, Microsoft::VisualStudio::Modeling::Partition ^ partition);
public static void ReadExtensions (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, System.Xml.XmlReader reader, Microsoft.VisualStudio.Modeling.Partition partition);
static member ReadExtensions : Microsoft.VisualStudio.Modeling.SerializationContext * System.Xml.XmlReader * Microsoft.VisualStudio.Modeling.Partition -> unit
Public Shared Sub ReadExtensions (serializationContext As SerializationContext, reader As XmlReader, partition As Partition)

Parameters

serializationContext
SerializationContext

Serialization context.

reader
XmlReader

XmlReader to read serialized data from.

partition
Partition

Partition in which to create the extension elements.

Remarks

If the reader is positioned at an extensions XML element, the method will read all of the ExtensionElements inside the extensions element. When the method returns, the reader will be positioned at the end tag of the extensions tag. If the reader is not positioned at an extensions element tag, the method will do nothing.

Note that the top-level extension elements read by this method will not be embedded in any other element.

Applies to