Initializes an instance of the PersistentGenericBag<(Of <(T>)>) that wraps an existing IList<(Of <(T>)>) in the session.

Namespace:  NHibernate.Collection.Generic
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	session As ISessionImplementor, _
	coll As IList(Of T) _
)
C#
public PersistentGenericBag(
	ISessionImplementor session,
	IList<T> coll
)
Visual C++
public:
PersistentGenericBag(
	ISessionImplementor^ session, 
	IList<T>^ coll
)
JavaScript
NHibernate.Collection.Generic.PersistentGenericBag = function(session, coll);

Parameters

session
Type: NHibernate.Engine..::.ISessionImplementor
The ISessionImplementor the bag is in.
coll
Type: System.Collections.Generic..::.IList<(Of <(T>)>)
The IList<(Of <(T>)>) to wrap.

See Also