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 EvictCollection ( _
	roleName As String, _
	id As Object _
)
C#
void EvictCollection(
	string roleName,
	Object id
)
Visual C++
void EvictCollection(
	String^ roleName, 
	Object^ id
)
JavaScript
function evictCollection(roleName, id);

Parameters

roleName
Type: System..::.String
id
Type: System..::.Object

See Also