XmlUtil.IsStartElement(XmlReader, String, ICollection<String>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷 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
參數
- element
- String
這是預期中的元素。
- namespaceList
- ICollection<String>
預期命名空間清單。
傳回
如果 reader 是預期元素。
例外狀況
若為 element 空或為空。