SerializationUtilities.ReadExtensions Method
Reads extension elements from the supplied reader.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
Public Shared Sub ReadExtensions ( _
serializationContext As SerializationContext, _
reader As XmlReader, _
partition As Partition _
)
public static void ReadExtensions(
SerializationContext serializationContext,
XmlReader reader,
Partition partition
)
public:
static void ReadExtensions(
SerializationContext^ serializationContext,
XmlReader^ reader,
Partition^ partition
)
static member ReadExtensions :
serializationContext:SerializationContext *
reader:XmlReader *
partition:Partition -> unit
public static function ReadExtensions(
serializationContext : SerializationContext,
reader : XmlReader,
partition : Partition
)
Parameters
serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContextSerialization context.
reader
Type: XmlReaderXmlReader to read serialized data from.
partition
Type: Microsoft.VisualStudio.Modeling.PartitionPartition 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.