XmlNamespaceCollection.

IndexOf(XmlNamespace) Method

Summary

Retrieves the index of a specified NAnt.Core.Types.XmlNamespace object in the collection.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Types
Containing Type
XmlNamespaceCollection

Syntax

public int IndexOf(XmlNamespace item)

Parameters

Name Type Description
item XmlNamespace The NAnt.Core.Types.XmlNamespace object for which the index is returned.

Return Value

Type Description
int The index of the specified NAnt.Core.Types.XmlNamespace. If the NAnt.Core.Types.XmlNamespace is not currently a member of the collection, it returns -1.