Associate the collection with the given session.

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

Syntax

C#
bool SetCurrentSession(
	ISessionImplementor session
)
Visual Basic
Function SetCurrentSession ( _
	session As ISessionImplementor _
) As Boolean
Visual C++
bool SetCurrentSession(
	ISessionImplementor^ session
)

Parameters

session
Type: NHibernate.Engine..::..ISessionImplementor

[Missing <param name="session"/> documentation for "M:NHibernate.Collection.IPersistentCollection.SetCurrentSession(NHibernate.Engine.ISessionImplementor)"]

Return Value

false if the collection was already associated with the session

See Also