Optional operation. Return the index of the entity in the collection.

Namespace:  NHibernate.UserTypes
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Function IndexOf ( _
	collection As Object, _
	entity As Object _
) As Object
C#
Object IndexOf(
	Object collection,
	Object entity
)
Visual C++
Object^ IndexOf(
	Object^ collection, 
	Object^ entity
)
JavaScript
function indexOf(collection, entity);

Parameters

collection
Type: System..::.Object
entity
Type: System..::.Object

See Also