Partilhar via


ExpressionNode.ReadWithCheck(XmlReader, XmlNodeType, String) Method

Definition

Reads the next xml node and verifies it has expected type and name (if supplied)

protected static void ReadWithCheck (System.Xml.XmlReader xr, System.Xml.XmlNodeType nodeType, string name);
static member ReadWithCheck : System.Xml.XmlReader * System.Xml.XmlNodeType * string -> unit
Protected Shared Sub ReadWithCheck (xr As XmlReader, nodeType As XmlNodeType, name As String)

Parameters

nodeType
XmlNodeType

expected node type

name
String

expected node name (can be null)

Exceptions

Thrown id node type and/or name don't match with provided type, name

Applies to