XmlQueryRuntime.MatchesXmlType 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回 true 指定项的类型是否与指定的 XML 类型匹配。
重载
| 名称 | 说明 |
|---|---|
| MatchesXmlType(IList<XPathItem>, Int32) |
返回 |
| MatchesXmlType(IList<XPathItem>, XmlTypeCode) |
确定指定序列的类型是否为指定单一实例类型的子类型。 |
| MatchesXmlType(XPathItem, Int32) |
返回 |
| MatchesXmlType(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
参数
- indexType
- Int32
索引。
返回
适用于
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
参数
- 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
参数
- 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
参数
- code
- XmlTypeCode
XmlTypeCode 类的实例。
返回
true 如果对象的类型 XPathItem 是由指定 XmlTypeCode类型标识的子类型,则为 ;否则为 false。