XmlDictionaryReader.IndexOfLocalName Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the index of the local name of the current node within an array of names.
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. |
- 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
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
UWP | 10.0 |
- 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
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: