XmlDictionaryReader.IndexOfLocalName XmlDictionaryReader.IndexOfLocalName XmlDictionaryReader.IndexOfLocalName XmlDictionaryReader.IndexOfLocalName Method

定义

获取名称数组中当前节点的本地名称的索引。Gets the index of the local name of the current node within an array of names.

重载

IndexOfLocalName(String[], String) IndexOfLocalName(String[], String) IndexOfLocalName(String[], String) IndexOfLocalName(String[], String)

获取名称数组中当前节点的本地名称的索引。Gets the index of the local name of the current node within an array of names.

IndexOfLocalName(XmlDictionaryString[], XmlDictionaryString) IndexOfLocalName(XmlDictionaryString[], XmlDictionaryString) IndexOfLocalName(XmlDictionaryString[], XmlDictionaryString) IndexOfLocalName(XmlDictionaryString[], XmlDictionaryString)

获取名称数组中当前节点的本地名称的索引。Gets the index of the local name of the current node within an array of names.

IndexOfLocalName(String[], String) IndexOfLocalName(String[], String) IndexOfLocalName(String[], String) IndexOfLocalName(String[], String)

获取名称数组中当前节点的本地名称的索引。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

参数

localNames
String[]

要搜索的本地名称字符串数组。The string array of local names to be searched.

namespaceUri
String String String String

当前节点的命名空间。The namespace of current node.

返回

名称数组中当前节点的本地名称的索引。The index of the local name of the current node within an array of names.

异常

localNames 或数组中的任何名称为 nulllocalNames or any of the names in the array is null.

-or-

namespaceUrinullnamespaceUri is null.

注解

localNames 为字符串数组,且 namespaceUri 为字符串。localNames is an array of strings, and namespaceUri is a string.

IndexOfLocalName(XmlDictionaryString[], XmlDictionaryString) IndexOfLocalName(XmlDictionaryString[], XmlDictionaryString) IndexOfLocalName(XmlDictionaryString[], XmlDictionaryString) IndexOfLocalName(XmlDictionaryString[], XmlDictionaryString)

获取名称数组中当前节点的本地名称的索引。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

参数

localNames
XmlDictionaryString[]

要搜索的本地名称 XmlDictionaryString 数组。The XmlDictionaryString array of local names to be searched.

namespaceUri
XmlDictionaryString XmlDictionaryString XmlDictionaryString XmlDictionaryString

当前节点的命名空间。The namespace of current node.

返回

名称数组中当前节点的本地名称的索引。The index of the local name of the current node within an array of names.

异常

localNames 或数组中的任何名称为 nulllocalNames or any of the names in the array is null.

- 或 --or-

namespaceUrinullnamespaceUri is null.

注解

localNamesXmlDictionaryString 的数组,且 namespaceUriXmlDictionaryStringlocalNames is an array of XmlDictionaryString, and namespaceUri is an XmlDictionaryString.

适用于