Share via


XmlQueryRuntime.MatchesXmlType 方法

定義

如果指定項目的型別與指定的 XML 型別相符,則傳回 true

多載

MatchesXmlType(IList<XPathItem>, Int32)

如果指定之序列中每一個項目的型別都與指定之索引識別的 XML 型別相符,則傳回 true

MatchesXmlType(IList<XPathItem>, XmlTypeCode)

決定指定之序列的類型是否為指定之單一類型的子類型。

MatchesXmlType(XPathItem, Int32)

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

MatchesXmlType(XPathItem, XmlTypeCode)

如果 XPathItem 物件的型別是由指定的 XmlTypeCode 所識別之型別的子型別,則傳回 true

MatchesXmlType(IList<XPathItem>, Int32)

Source:
XmlQueryRuntime.cs
Source:
XmlQueryRuntime.cs
Source:
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

索引。

傳回

如果 seq 的型別為 indexType 的子型別,則為 true,否則為 false

適用於

MatchesXmlType(IList<XPathItem>, XmlTypeCode)

Source:
XmlQueryRuntime.cs
Source:
XmlQueryRuntime.cs
Source:
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

單一類型。

傳回

如果 seq 的型別為 code 指定之型別的子型別,則為 true,否則為 false

適用於

MatchesXmlType(XPathItem, Int32)

Source:
XmlQueryRuntime.cs
Source:
XmlQueryRuntime.cs
Source:
XmlQueryRuntime.cs

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

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 類型陣列中的索引。

傳回

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

適用於

MatchesXmlType(XPathItem, XmlTypeCode)

Source:
XmlQueryRuntime.cs
Source:
XmlQueryRuntime.cs
Source:
XmlQueryRuntime.cs

如果 XPathItem 物件的型別是由指定的 XmlTypeCode 所識別之型別的子型別,則傳回 true

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 類別的執行個體。

傳回

如果 XmlTypeCode 物件的類型是由指定的 false 所識別之類型的子類型,則為 true;否則為 XPathItem

適用於