Method GetIndex
GetIndex(String, String)
Look up an attribute's index by Namespace name.
Declaration
public virtual int GetIndex(string uri, string localName)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | The attribute's Namespace URI, or the empty string if none is available. |
System.String | localName | The attribute's local name. |
Returns
Type | Description |
---|---|
System.Int32 | The attribute's index, or -1 if none matches. |
Implements
Remarks
In many cases, it will be more efficient to look up the name once and use the index query methods rather than using the name query methods repeatedly.
See Also
GetIndex(String)
Look up an attribute's index by qualified (prefixed) name.
Declaration
public virtual int GetIndex(string qName)
Parameters
Type | Name | Description |
---|---|---|
System.String | qName | The qualified name. |
Returns
Type | Description |
---|---|
System.Int32 | The attribute's index, or -1 if none matches. |