Read the persistent state associated with the given identifier into the given transient instance.

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

Syntax

Visual Basic (Declaration)
Sub Load ( _
	obj As Object, _
	id As Object _
)
C#
void Load(
	Object obj,
	Object id
)
Visual C++
void Load(
	Object^ obj, 
	Object^ id
)
JavaScript
function load(obj, id);

Parameters

obj
Type: System..::.Object
An "empty" instance of the persistent class
id
Type: System..::.Object
A valid identifier of an existing persistent instance of the class

See Also