XmlDictionaryReader.IndexOfLocalName Method (XmlDictionaryString[], XmlDictionaryString)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Xml
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

public virtual int IndexOfLocalName(
	XmlDictionaryString[] localNames,
	XmlDictionaryString namespaceUri
)

Parameters

localNames
Type: System.Xml.XmlDictionaryString[]

The XmlDictionaryString array of local names to be searched.

namespaceUri
Type: System.Xml.XmlDictionaryString

The namespace of current node.

Return Value

Type: System.Int32

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

Exception Condition
ArgumentNullException

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

ArgumentNullException

namespaceUri is null.

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: