NAnt SDK Documentation - v0.92 |

# XmlNamespaceCollection.IndexOf Method

Retrieves the index of a specified XmlNamespace object in the collection.

[Visual Basic]
Public Function IndexOf( _
ByVal item As XmlNamespace _
) As Integer
[C#]
public int IndexOf(
XmlNamespace item
);

#### Parameters

item
  The XmlNamespace object for which the index is returned.

#### Return Value

The index of the specified XmlNamespace. If the XmlNamespace is not currently a member of the collection, it returns -1.

#### See Also

XmlNamespaceCollection Class | NAnt.Core.Types Namespace