Check if the property is initialized. If the named property does not exist or is not persistent, this method always returns true.

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

Syntax

C#
public static bool IsPropertyInitialized(
	Object proxy,
	string propertyName
)
Visual Basic
Public Shared Function IsPropertyInitialized ( _
	proxy As Object, _
	propertyName As String _
) As Boolean
Visual C++
public:
static bool IsPropertyInitialized(
	Object^ proxy, 
	String^ propertyName
)

Parameters

proxy
Type: System..::..Object
The potential proxy
propertyName
Type: System..::..String
the name of a persistent attribute of the object

Return Value

true if the named property of the object is not listed as uninitialized; false if the object is an uninitialized proxy, or the named property is uninitialized

See Also