Lire en anglais Modifier

Partager via


XmlQueryRuntime.IsQNameEqual Method

Definition

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);

Parameters

n1
XPathNavigator

An instance of the XPathNavigator class.

n2
XPathNavigator

An instance of the XPathNavigator class.

Returns

true if the names are equal; otherwise, false.

Applies to

.NET Framework 4.8.1 et autres versions
Produit Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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);

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

.NET Framework 4.8.1 et autres versions
Produit Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1