XmlQueryRuntime.IsQNameEqual 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.
Compares the LocalName and NamespaceURI properties of two XPathNavigator instances to check if they are equal.
Overloads
IsQNameEqual(XPathNavigator, XPathNavigator) |
Compares the LocalName and NamespaceURI properties of two XPathNavigator instances to check if they are equal. |
IsQNameEqual(XPathNavigator, Int32, Int32) |
Determines whether the LocalName and NamespaceURI properties of the specified XPathNavigator are equal to the names specified in the parameters. |
IsQNameEqual(XPathNavigator, XPathNavigator)
- Source:
- XmlQueryRuntime.cs
- Source:
- XmlQueryRuntime.cs
- Source:
- XmlQueryRuntime.cs
Compares the LocalName and NamespaceURI properties of two XPathNavigator instances to check if they are equal.
public:
bool IsQNameEqual(System::Xml::XPath::XPathNavigator ^ n1, System::Xml::XPath::XPathNavigator ^ n2);
public bool IsQNameEqual (System.Xml.XPath.XPathNavigator n1, System.Xml.XPath.XPathNavigator n2);
member this.IsQNameEqual : System.Xml.XPath.XPathNavigator * System.Xml.XPath.XPathNavigator -> bool
Public Function IsQNameEqual (n1 As XPathNavigator, n2 As XPathNavigator) As Boolean
Parameters
An instance of the XPathNavigator class.
An instance of the XPathNavigator class.
Returns
true
if the names are equal; otherwise, false
.
Applies to
IsQNameEqual(XPathNavigator, Int32, Int32)
- Source:
- XmlQueryRuntime.cs
- Source:
- XmlQueryRuntime.cs
- Source:
- XmlQueryRuntime.cs
Determines whether the LocalName and NamespaceURI properties of the specified XPathNavigator are equal to the names specified in the parameters.
public:
bool IsQNameEqual(System::Xml::XPath::XPathNavigator ^ navigator, int indexLocalName, int indexNamespaceUri);
public bool IsQNameEqual (System.Xml.XPath.XPathNavigator navigator, int indexLocalName, int indexNamespaceUri);
member this.IsQNameEqual : System.Xml.XPath.XPathNavigator * int * int -> bool
Public Function IsQNameEqual (navigator As XPathNavigator, indexLocalName As Integer, indexNamespaceUri As Integer) As Boolean
Parameters
- navigator
- XPathNavigator
An instance of the XPathNavigator class.
- indexLocalName
- Int32
A value of type int
.
- indexNamespaceUri
- Int32
A value of type int
.
Returns
true
if the names are equal; otherwise, false
.
Remarks
The IsQNameEqual method calls the GetAtomizedName method to get the local name and the namespace URI based on the indexLocalName
and indexNamespaceUri
.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈