Share via


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

  • reader
    Type: XmlReader

    XmlReader to read serialized data from.

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

See Also

Reference

SerializationUtilities Class

Microsoft.VisualStudio.Modeling Namespace