Redigera

Dela via


XmlQueryRuntime.MatchesXmlType Method

Definition

Returns true if the type of the specified item matches the specified XML type.

Overloads

MatchesXmlType(IList<XPathItem>, Int32)

Returns true if the type of every item in the specified sequence matches the XML type that the specified index identifies.

MatchesXmlType(IList<XPathItem>, XmlTypeCode)

Determines whether the type of the specified sequence is a subtype of the specified singleton type.

MatchesXmlType(XPathItem, Int32)

Returns true if the type of the specified XPathItem object matches the specified XML type.

MatchesXmlType(XPathItem, XmlTypeCode)

Returns true if the type of the XPathItem object is a subtype of a type identified by the specified XmlTypeCode.

MatchesXmlType(IList<XPathItem>, Int32)

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

Returns true if the type of every item in the specified sequence matches the XML type that the specified index identifies.

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

Parameters

seq
IList<XPathItem>

An IList<T> of XPathItem objects.

indexType
Int32

The index.

Returns

true if the type of seq is a subtype of the indexType; otherwise, false.

Applies to

MatchesXmlType(IList<XPathItem>, XmlTypeCode)

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

Determines whether the type of the specified sequence is a subtype of the specified singleton type.

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

Parameters

seq
IList<XPathItem>

A sequence of XPathItem instances.

code
XmlTypeCode

A singleton type.

Returns

true if the type of seq is a subtype the type specified by code; otherwise, false.

Applies to

MatchesXmlType(XPathItem, Int32)

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

Returns true if the type of the specified XPathItem object matches the specified XML type.

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

Parameters

item
XPathItem

An instance of the XPathItem class.

indexType
Int32

The index in the array of XML types.

Returns

true if the type of the specified XPathItem matches the specified XML type; otherwise, false.

Applies to

MatchesXmlType(XPathItem, XmlTypeCode)

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

Returns true if the type of the XPathItem object is a subtype of a type identified by the specified 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

Parameters

item
XPathItem

An instance of the XPathItem class.

code
XmlTypeCode

An instance of the XmlTypeCode class.

Returns

true if the type of the XPathItem object is a subtype of a type identified by the specified XmlTypeCode; otherwise, false.

Applies to