NAnt SDK Documentation - v0.92

NamespaceImportCollection.IndexOf Method 

Gets the location of a NamespaceImport in the collection.

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

Parameters

value
The NamespaceImport object to locate.

Return Value

The zero-based location of the NamespaceImport in the collection.

Remarks

If the NamespaceImport is not currently a member of the collection, -1 is returned.

See Also

NamespaceImportCollection Class | NAnt.DotNet.Types Namespace