XmlQueryRuntime.MatchesXmlType 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
若指定項目的類型與指定的 XML 類型相符,則回傳 true 。
多載
| 名稱 | Description |
|---|---|
| MatchesXmlType(IList<XPathItem>, Int32) |
如果指定序列中每個項目的型別都符合該索引所識別的 XML 型別,則回傳 |
| MatchesXmlType(IList<XPathItem>, XmlTypeCode) |
判斷指定序列的型別是否為指定單例型的子型態。 |
| MatchesXmlType(XPathItem, Int32) |
如果指定 |
| MatchesXmlType(XPathItem, XmlTypeCode) |
若物件的 |
MatchesXmlType(IList<XPathItem>, Int32)
如果指定序列中每個項目的型別都符合該索引所識別的 XML 型別,則回傳 true 。
public:
bool MatchesXmlType(System::Collections::Generic::IList<System::Xml::XPath::XPathItem ^> ^ seq, int indexType);
public bool MatchesXmlType(System.Collections.Generic.IList<System.Xml.XPath.XPathItem> seq, int indexType);
member this.MatchesXmlType : System.Collections.Generic.IList<System.Xml.XPath.XPathItem> * int -> bool
Public Function MatchesXmlType (seq As IList(Of XPathItem), indexType As Integer) As Boolean
參數
- indexType
- Int32
索引。
傳回
true 若 的 seq 型別是 的 indexType子型;否則, false。
適用於
MatchesXmlType(IList<XPathItem>, XmlTypeCode)
判斷指定序列的型別是否為指定單例型的子型態。
public:
bool MatchesXmlType(System::Collections::Generic::IList<System::Xml::XPath::XPathItem ^> ^ seq, System::Xml::Schema::XmlTypeCode code);
public bool MatchesXmlType(System.Collections.Generic.IList<System.Xml.XPath.XPathItem> seq, System.Xml.Schema.XmlTypeCode code);
member this.MatchesXmlType : System.Collections.Generic.IList<System.Xml.XPath.XPathItem> * System.Xml.Schema.XmlTypeCode -> bool
Public Function MatchesXmlType (seq As IList(Of XPathItem), code As XmlTypeCode) As Boolean
參數
- code
- XmlTypeCode
單身型。
傳回
true 若 的 seq 型別為子型態,則由 code指定;否則, false。
適用於
MatchesXmlType(XPathItem, Int32)
如果指定true物件的型別與指定的 XML 型別相符,則會回傳XPathItem。
public:
bool MatchesXmlType(System::Xml::XPath::XPathItem ^ item, int indexType);
public bool MatchesXmlType(System.Xml.XPath.XPathItem item, int indexType);
member this.MatchesXmlType : System.Xml.XPath.XPathItem * int -> bool
Public Function MatchesXmlType (item As XPathItem, indexType As Integer) As Boolean
參數
- indexType
- Int32
XML 類型陣列中的索引。
傳回
true如果指定的 XPathItem 型別與指定的 XML 型別相符;否則, false
適用於
MatchesXmlType(XPathItem, XmlTypeCode)
若物件的true型別是指定XPathItem型別的子型別,則回傳XmlTypeCode該物件。
public:
bool MatchesXmlType(System::Xml::XPath::XPathItem ^ item, System::Xml::Schema::XmlTypeCode code);
public bool MatchesXmlType(System.Xml.XPath.XPathItem item, System.Xml.Schema.XmlTypeCode code);
member this.MatchesXmlType : System.Xml.XPath.XPathItem * System.Xml.Schema.XmlTypeCode -> bool
Public Function MatchesXmlType (item As XPathItem, code As XmlTypeCode) As Boolean
參數
- code
- XmlTypeCode
XmlTypeCode 類別的執行個體。
傳回
true 若物件的 XPathItem 型別是指定 XmlTypeCode型別的子型別;否則, false。