Επεξεργασία

Κοινή χρήση μέσω


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.

public:
 virtual int IndexOfLocalName(cli::array <System::String ^> ^ localNames, System::String ^ namespaceUri);
public virtual int IndexOfLocalName (string[] localNames, string namespaceUri);
abstract member IndexOfLocalName : string[] * string -> int
override this.IndexOfLocalName : string[] * string -> int
Public Overridable Function IndexOfLocalName (localNames As String(), namespaceUri As String) As Integer

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

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.

public:
 virtual int IndexOfLocalName(cli::array <System::Xml::XmlDictionaryString ^> ^ localNames, System::Xml::XmlDictionaryString ^ namespaceUri);
public virtual int IndexOfLocalName (System.Xml.XmlDictionaryString[] localNames, System.Xml.XmlDictionaryString namespaceUri);
abstract member IndexOfLocalName : System.Xml.XmlDictionaryString[] * System.Xml.XmlDictionaryString -> int
override this.IndexOfLocalName : System.Xml.XmlDictionaryString[] * System.Xml.XmlDictionaryString -> int
Public Overridable Function IndexOfLocalName (localNames As XmlDictionaryString(), namespaceUri As XmlDictionaryString) As Integer

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