XmlDictionaryReader.IndexOfLocalName Method (array<String>[]()[], String)
[ 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)
Syntax
Public Overridable Function IndexOfLocalName ( _
localNames As String(), _
namespaceUri As String _
) As Integer
public virtual int IndexOfLocalName(
string[] localNames,
string namespaceUri
)
Parameters
- localNames
Type: array<System..::.String>[]()[]
The string array of local names to be searched.
- namespaceUri
Type: System..::.String
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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | localNames or any of the names in the array is nullNothingnullptra null reference (Nothing in Visual Basic). |
ArgumentNullException | namespaceUri is nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
localNames is an array of strings and namespaceUri is a string.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone