XmlQueryRuntime.MatchesXmlType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns true
if the type of the specified item matches the specified XML type.
Overloads
MatchesXmlType(IList<XPathItem>, Int32) |
Returns |
MatchesXmlType(IList<XPathItem>, XmlTypeCode) |
Determines whether the type of the specified sequence is a subtype of the specified singleton type. |
MatchesXmlType(XPathItem, Int32) |
Returns |
MatchesXmlType(XPathItem, XmlTypeCode) |
Returns |
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
- 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
- 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
- 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
- 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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기