語言

XmlUtil.IsStartElement(XmlReader, String, ICollection<String>) 方法

定義

判斷 reader 是否位於 namespaceList 中列出的命名空間中的預期元素。

public static bool IsStartElement(System.Xml.XmlReader reader, string element, System.Collections.Generic.ICollection<string> namespaceList);
static member IsStartElement : System.Xml.XmlReader * string * System.Collections.Generic.ICollection<string> -> bool
Public Shared Function IsStartElement (reader As XmlReader, element As String, namespaceList As ICollection(Of String)) As Boolean

參數

reader
XmlReader

去 XmlReader檢查。

element
String

這是預期中的元素。

namespaceList
ICollection<String>

預期命名空間清單。

傳回

如果 reader 是預期元素。

例外狀況

若為 element 空或為空。

適用於