Evict an entry from the process-level cache. This method occurs outside of any transaction; it performs an immediate "hard" remove, so does not respect any transaction isolation semantics of the usage strategy. Use with care.

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

Syntax

Visual Basic (Declaration)
Sub Evict ( _
	persistentClass As Type, _
	id As Object _
)
C#
void Evict(
	Type persistentClass,
	Object id
)
Visual C++
void Evict(
	Type^ persistentClass, 
	Object^ id
)
JavaScript
function evict(persistentClass, id);

Parameters

persistentClass
Type: System..::.Type
id
Type: System..::.Object

See Also