Freigeben über


XmlDictionaryReader.IndexOfLocalName Method (array<XmlDictionaryString[], XmlDictionaryString)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

'Declaration
Public Overridable Function IndexOfLocalName ( _
    localNames As XmlDictionaryString(), _
    namespaceUri As XmlDictionaryString _
) As Integer
public virtual int IndexOfLocalName(
    XmlDictionaryString[] localNames,
    XmlDictionaryString namespaceUri
)

Parameters

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 nulla null reference (Nothing in Visual Basic).

ArgumentNullException

namespaceUri is nulla null reference (Nothing in Visual Basic).

Remarks

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

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.