NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlReader.CheckStartTag (XmlIdent)

Checks that the current content node is a start tag with a given identifier.

[Visual Basic]
Overloads Public Sub CheckStartTag( _
   ByVal id As XmlIdent _
)
[C#]
public void CheckStartTag(
   XmlIdent id
);
[C++]
public: void CheckStartTag(
   XmlIdent* id
);
[JScript]
public function CheckStartTag(
   id : XmlIdent
);

Parameters

id
The required identifier for the start tag.

Exceptions

Exception Type Condition
ArgumentException If id is null or does not belong to the same context as the reader.
XmlException If incorrect XML is encountered in the input stream or if the resulting node is not a start tag with the given identifier.

Remarks

This method skips whitespace, comments, and processing instructions until the reader is positioned on a content node. The method then checks that the current node is a start tag with the given identifier. If the check is unsuccessful, an exception is thrown.

The given identifier must belong to the same context as the reader. To obtain an XmlIdent for a given name and namespace URI, first get the value of the reader's Context property and then call one of the GetID methods on that context.

See Also

XmlReader Class | XmlReader Members | System.Xml Namespace | XmlReader.CheckStartTag Overload List | CheckStartTag | CheckStartTag | CheckStartTag | IsStartTag | MoveToContent