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#
public bool IsInstance(
	Object entity,
	EntityMode entityMode
)
Visual Basic
Public Function IsInstance ( _
	entity As Object, _
	entityMode As EntityMode _
) As Boolean
Visual C++
public:
virtual bool IsInstance(
	Object^ entity, 
	EntityMode entityMode
) sealed

Parameters

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

Return Value

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

Implements

IEntityPersister..::..IsInstance(Object, EntityMode)

See Also