Determines whether the specified entity is an instance of the class managed by this persister.

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

Syntax

C#
bool IsInstance(
	Object entity,
	EntityMode entityMode
)
Visual Basic
Function IsInstance ( _
	entity As Object, _
	entityMode As EntityMode _
) As Boolean
Visual C++
bool IsInstance(
	Object^ entity, 
	EntityMode entityMode
)

Parameters

entity
Type: System..::..Object
The entity.
entityMode
Type: NHibernate..::..EntityMode
The EntityMode

Return Value

trueTruetruetrue (True in Visual Basic) if the specified entity is an instance; otherwise, falseFalsefalsefalse (False in Visual Basic).

See Also