Force initialization of a proxy or persistent collection.
Namespace: NHibernateAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
| C# |
|---|
public static void Initialize( Object proxy ) |
| Visual Basic |
|---|
Public Shared Sub Initialize ( _ proxy As Object _ ) |
| Visual C++ |
|---|
public: static void Initialize( Object^ proxy ) |
Parameters
- proxy
- Type: System..::..Object
a persistable object, proxy, persistent collection or null
Exceptions
| Exception | Condition |
|---|---|
| NHibernate..::..HibernateException | if we can't initialize the proxy at this time, eg. the Session was closed |