XmlDictionaryReader.IndexOfLocalName Method

Definition

Gets the index of the local name of the current node within an array of names.

Overloads

IndexOfLocalName(String[], String)

Gets the index of the local name of the current node within an array of names.

IndexOfLocalName(XmlDictionaryString[], XmlDictionaryString)

Gets the index of the local name of the current node within an array of names.

IndexOfLocalName(String[], String)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Gets the index of the local name of the current node within an array of names.

C#
public virtual int IndexOfLocalName(string[] localNames, string namespaceUri);

Parameters

localNames
String[]

The string array of local names to be searched.

namespaceUri
String

The namespace of current node.

Returns

The index of the local name of the current node within an array of names.

Exceptions

localNames or any of the names in the array is null.

-or-

namespaceUri is null.

Remarks

localNames is an array of strings, and namespaceUri is a string.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 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
.NET Standard 2.0, 2.1
UWP 10.0

IndexOfLocalName(XmlDictionaryString[], XmlDictionaryString)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Gets the index of the local name of the current node within an array of names.

C#
public virtual int IndexOfLocalName(System.Xml.XmlDictionaryString[] localNames, System.Xml.XmlDictionaryString namespaceUri);

Parameters

localNames
XmlDictionaryString[]

The XmlDictionaryString array of local names to be searched.

namespaceUri
XmlDictionaryString

The namespace of current node.

Returns

The index of the local name of the current node within an array of names.

Exceptions

localNames or any of the names in the array is null.

-or-

namespaceUri is null.

Remarks

localNames is an array of XmlDictionaryString, and namespaceUri is an XmlDictionaryString.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 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
.NET Standard 2.0, 2.1
UWP 10.0