Try to find an element by a given index.

Namespace: NHibernate.Persister.Collection
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
Object GetElementByIndex(
	Object key,
	Object index,
	ISessionImplementor session,
	Object owner
)
Visual Basic
Function GetElementByIndex ( _
	key As Object, _
	index As Object, _
	session As ISessionImplementor, _
	owner As Object _
) As Object
Visual C++
Object^ GetElementByIndex(
	Object^ key, 
	Object^ index, 
	ISessionImplementor^ session, 
	Object^ owner
)

Parameters

key
Type: System..::..Object
The key of the collection (collection-owner identifier)
index
Type: System..::..Object
The given index.
session
Type: NHibernate.Engine..::..ISessionImplementor
The active ISession.
owner
Type: System..::..Object
The owner of the collection.

Return Value

The value of the element where available; otherwise NotFoundObject.

See Also