Freigeben über


SerializationUtilities.SkipToNextElement Method

Moves the reader to the start tag of the next element.

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

Syntax

'Declaration
Public Shared Sub SkipToNextElement ( _
    reader As XmlReader _
)
public static void SkipToNextElement(
    XmlReader reader
)
public:
static void SkipToNextElement(
    XmlReader^ reader
)
static member SkipToNextElement : 
        reader:XmlReader -> unit 
public static function SkipToNextElement(
    reader : XmlReader
)

Parameters

Remarks

This is usually used after a ReaderInnerXml call, where the reader will be positioned after the close tag of the previous element.

Because there may be whitespace or comments between the two elements, the reader might not be moved automatically onto the start tag of the next element.

If the reader is already on a start tag, this method will do nothing.

This method will also stop if an end tag is encountered, which means there are no more siblings and the end of the parent element is reached.

.NET Framework Security

See Also

Reference

SerializationUtilities Class

Microsoft.VisualStudio.Modeling Namespace