XmlQueryRuntime.MatchesXmlType 方法

定义

返回 true 指定项的类型是否与指定的 XML 类型匹配。

重载

名称 说明
MatchesXmlType(IList<XPathItem>, Int32)

返回 true 指定序列中每个项的类型是否与指定索引标识的 XML 类型匹配。

MatchesXmlType(IList<XPathItem>, XmlTypeCode)

确定指定序列的类型是否为指定单一实例类型的子类型。

MatchesXmlType(XPathItem, Int32)

返回 true 指定 XPathItem 对象的类型是否与指定的 XML 类型匹配。

MatchesXmlType(XPathItem, XmlTypeCode)

返回 true 对象的类型 XPathItem 是否为由指定 XmlTypeCode类型标识的子类型。

MatchesXmlType(IList<XPathItem>, Int32)

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

返回 true 指定序列中每个项的类型是否与指定索引标识的 XML 类型匹配。

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

索引。

返回

如果类型为 <a0/> 的子类型,则为 ;否则为

适用于

MatchesXmlType(IList<XPathItem>, XmlTypeCode)

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

单一实例类型。

返回

true 如果类型 seq 是指定 code类型的子类型,则为 ;否则为 false

适用于

MatchesXmlType(XPathItem, Int32)

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

返回 true 指定 XPathItem 对象的类型是否与指定的 XML 类型匹配。

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)

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

适用于