XmlQueryRuntime.MatchesXmlType Metod

Definition

Returnerar true om typen av det angivna objektet matchar den angivna XML-typen.

Överlagringar

Name Description
MatchesXmlType(IList<XPathItem>, Int32)

Returnerar true om typen av varje objekt i den angivna sekvensen matchar DEN XML-typ som det angivna indexet identifierar.

MatchesXmlType(IList<XPathItem>, XmlTypeCode)

Avgör om typen av den angivna sekvensen är en undertyp av den angivna singleton-typen.

MatchesXmlType(XPathItem, Int32)

Returnerar true om typen av det angivna XPathItem objektet matchar den angivna XML-typen.

MatchesXmlType(XPathItem, XmlTypeCode)

Returnerar true om objektets XPathItem typ är en undertyp av en typ som identifieras av den angivna XmlTypeCode.

MatchesXmlType(IList<XPathItem>, Int32)

Källa:
XmlQueryRuntime.cs
Källa:
XmlQueryRuntime.cs
Källa:
XmlQueryRuntime.cs
Källa:
XmlQueryRuntime.cs
Källa:
XmlQueryRuntime.cs

Returnerar true om typen av varje objekt i den angivna sekvensen matchar DEN XML-typ som det angivna indexet identifierar.

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

Parametrar

seq
IList<XPathItem>

En IList<T> av XPathItem objekt.

indexType
Int32

Indexet.

Returer

true om typen av seq är en undertyp av indexType; annars , false.

Gäller för

MatchesXmlType(IList<XPathItem>, XmlTypeCode)

Källa:
XmlQueryRuntime.cs
Källa:
XmlQueryRuntime.cs
Källa:
XmlQueryRuntime.cs
Källa:
XmlQueryRuntime.cs
Källa:
XmlQueryRuntime.cs

Avgör om typen av den angivna sekvensen är en undertyp av den angivna singleton-typen.

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

Parametrar

seq
IList<XPathItem>

En sekvens med XPathItem instanser.

code
XmlTypeCode

En singleton-typ.

Returer

true om typen av seq är en undertyp som den typ som anges av code, annars , false.

Gäller för

MatchesXmlType(XPathItem, Int32)

Källa:
XmlQueryRuntime.cs
Källa:
XmlQueryRuntime.cs
Källa:
XmlQueryRuntime.cs
Källa:
XmlQueryRuntime.cs
Källa:
XmlQueryRuntime.cs

Returnerar true om typen av det angivna XPathItem objektet matchar den angivna XML-typen.

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

Parametrar

item
XPathItem

En instans av XPathItem klassen.

indexType
Int32

Indexet i matrisen med XML-typer.

Returer

true om den angivna XPathItem typen matchar den angivna XML-typen, falseannars .

Gäller för

MatchesXmlType(XPathItem, XmlTypeCode)

Källa:
XmlQueryRuntime.cs
Källa:
XmlQueryRuntime.cs
Källa:
XmlQueryRuntime.cs
Källa:
XmlQueryRuntime.cs
Källa:
XmlQueryRuntime.cs

Returnerar true om objektets XPathItem typ är en undertyp av en typ som identifieras av den angivna 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

Parametrar

item
XPathItem

En instans av XPathItem klassen.

code
XmlTypeCode

En instans av XmlTypeCode klassen.

Returer

true om objektets XPathItem typ är en undertyp av en typ som identifieras av den angivna XmlTypeCode, annars false.

Gäller för