Nyelv

XmlQueryRuntime.MatchesXmlType Metódus

Definíció

Visszaadja true , ha a megadott elem típusa megegyezik a megadott XML-típussal.

Túlterhelések

Name Description
MatchesXmlType(IList<XPathItem>, Int32)

Visszaadja true , ha a megadott sorozat minden elemének típusa megegyezik a megadott index által azonosított XML-típussal.

MatchesXmlType(IList<XPathItem>, XmlTypeCode)

Meghatározza, hogy a megadott sorozat típusa a megadott singleton típus altípusa-e.

MatchesXmlType(XPathItem, Int32)

Visszaadja true , ha a megadott XPathItem objektum típusa megegyezik a megadott XML-típussal.

MatchesXmlType(XPathItem, XmlTypeCode)

Visszaadja true , ha az XPathItem objektum típusa a megadott XmlTypeCodetípus által azonosított típus altípusa.

MatchesXmlType(IList<XPathItem>, Int32)

Forrás:
XmlQueryRuntime.cs
Forrás:
XmlQueryRuntime.cs
Forrás:
XmlQueryRuntime.cs
Forrás:
XmlQueryRuntime.cs
Forrás:
XmlQueryRuntime.cs

Visszaadja true , ha a megadott sorozat minden elemének típusa megegyezik a megadott index által azonosított XML-típussal.

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

Paraméterek

seq
IList<XPathItem>

Objektumok IList<T> egyike XPathItem .

indexType
Int32

Az index.

Válaszok

trueha a típus seq a ; egyéb altípusaindexType. false

A következőre érvényes:

MatchesXmlType(IList<XPathItem>, XmlTypeCode)

Forrás:
XmlQueryRuntime.cs
Forrás:
XmlQueryRuntime.cs
Forrás:
XmlQueryRuntime.cs
Forrás:
XmlQueryRuntime.cs
Forrás:
XmlQueryRuntime.cs

Meghatározza, hogy a megadott sorozat típusa a megadott singleton típus altípusa-e.

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

Paraméterek

seq
IList<XPathItem>

Példányok sorozata XPathItem .

code
XmlTypeCode

Egy szimpla típus.

Válaszok

true ha a típus seq a megadott codetípus altípusa; falseegyébként.

A következőre érvényes:

MatchesXmlType(XPathItem, Int32)

Forrás:
XmlQueryRuntime.cs
Forrás:
XmlQueryRuntime.cs
Forrás:
XmlQueryRuntime.cs
Forrás:
XmlQueryRuntime.cs
Forrás:
XmlQueryRuntime.cs

Visszaadja true , ha a megadott XPathItem objektum típusa megegyezik a megadott XML-típussal.

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

Paraméterek

item
XPathItem

Egy példánya a XPathItem osztálynak.

indexType
Int32

Az XML-típusok tömbjének indexe.

Válaszok

true ha a megadott XPathItem típus megegyezik a megadott XML-típussal, falseellenkező esetben.

A következőre érvényes:

MatchesXmlType(XPathItem, XmlTypeCode)

Forrás:
XmlQueryRuntime.cs
Forrás:
XmlQueryRuntime.cs
Forrás:
XmlQueryRuntime.cs
Forrás:
XmlQueryRuntime.cs
Forrás:
XmlQueryRuntime.cs

Visszaadja true , ha az XPathItem objektum típusa a megadott XmlTypeCodetípus által azonosított típus altípusa.

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

Paraméterek

item
XPathItem

Egy példánya a XPathItem osztálynak.

code
XmlTypeCode

Egy példánya a XmlTypeCode osztálynak.

Válaszok

true ha az XPathItem objektum típusa a megadott XmlTypeCodetípus altípusa, ellenkező esetben false.

A következőre érvényes: