XmlQueryRuntime.MatchesXmlType 方法

定義

若指定項目的類型與指定的 XML 類型相符,則回傳 true

多載

名稱 Description
MatchesXmlType(IList<XPathItem>, Int32)

如果指定序列中每個項目的型別都符合該索引所識別的 XML 型別,則回傳 true

MatchesXmlType(IList<XPathItem>, XmlTypeCode)

判斷指定序列的型別是否為指定單例型的子型態。

MatchesXmlType(XPathItem, Int32)

如果指定true物件的型別與指定的 XML 型別相符,則會回傳XPathItem

MatchesXmlType(XPathItem, XmlTypeCode)

若物件的true型別是指定XPathItem型別的子型別,則回傳XmlTypeCode該物件。

MatchesXmlType(IList<XPathItem>, Int32)

來源:
XmlQueryRuntime.cs
來源:
XmlQueryRuntime.cs
來源:
XmlQueryRuntime.cs
來源:
XmlQueryRuntime.cs
來源:
XmlQueryRuntime.cs

如果指定序列中每個項目的型別都符合該索引所識別的 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

參數

seq
IList<XPathItem>

IList<T>XPathItem 物件。

indexType
Int32

索引。

傳回

true 若 的 seq 型別是 的 indexType子型;否則, false

適用於

MatchesXmlType(IList<XPathItem>, XmlTypeCode)

來源:
XmlQueryRuntime.cs
來源:
XmlQueryRuntime.cs
來源:
XmlQueryRuntime.cs
來源:
XmlQueryRuntime.cs
來源:
XmlQueryRuntime.cs

判斷指定序列的型別是否為指定單例型的子型態。

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

參數

seq
IList<XPathItem>

一連串 XPathItem 的實例。

code
XmlTypeCode

單身型。

傳回

true 若 的 seq 型別為子型態,則由 code指定;否則, false

適用於

MatchesXmlType(XPathItem, Int32)

來源:
XmlQueryRuntime.cs
來源:
XmlQueryRuntime.cs
來源:
XmlQueryRuntime.cs
來源:
XmlQueryRuntime.cs
來源:
XmlQueryRuntime.cs

如果指定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

參數

item
XPathItem

XPathItem 類別的執行個體。

indexType
Int32

XML 類型陣列中的索引。

傳回

true如果指定的 XPathItem 型別與指定的 XML 型別相符;否則, false

適用於

MatchesXmlType(XPathItem, XmlTypeCode)

來源:
XmlQueryRuntime.cs
來源:
XmlQueryRuntime.cs
來源:
XmlQueryRuntime.cs
來源:
XmlQueryRuntime.cs
來源:
XmlQueryRuntime.cs

若物件的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

參數

item
XPathItem

XPathItem 類別的執行個體。

code
XmlTypeCode

XmlTypeCode 類別的執行個體。

傳回

true 若物件的 XPathItem 型別是指定 XmlTypeCode型別的子型別;否則, false

適用於