IndexOfLocalName Method (XmlDictionaryString[], XmlDictionaryString)
Collapse the table of content
Expand the table of content

XmlDictionaryReader.IndexOfLocalName Method (XmlDictionaryString[], XmlDictionaryString)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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 the current node.

Return Value

Type: System.Int32
The index of the local name of the current node within an array of names.

ExceptionCondition
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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft