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
'Dichiarazione
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
- reader
Type: System.Xml.XmlReader
The XmlReader to skip.
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
- 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.