Method GetIndex
GetIndex(String, String)
Look up the index of an attribute by Namespace name.
Declaration
int GetIndex(string uri, string localName)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | The Namespace URI, or the empty string if the name has no Namespace URI. |
System.String | localName | The attribute's local name. |
Returns
Type | Description |
---|---|
System.Int32 | The index of the attribute, or -1 if it does not appear in the list. |
GetIndex(String)
Look up the index of an attribute by XML qualified (prefixed) name.
Declaration
int GetIndex(string qName)
Parameters
Type | Name | Description |
---|---|---|
System.String | qName | The qualified (prefixed) name. |
Returns
Type | Description |
---|---|
System.Int32 | The index of the attribute, or -1 if it does not appear in the list. |