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) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
void EvictCollection(
	string roleName,
	Object id
)
Visual Basic
Sub EvictCollection ( _
	roleName As String, _
	id As Object _
)
Visual C++
void EvictCollection(
	String^ roleName, 
	Object^ id
)

Parameters

roleName
Type: System..::..String

[Missing <param name="roleName"/> documentation for "M:NHibernate.ISessionFactory.EvictCollection(System.String,System.Object)"]

id
Type: System..::..Object

[Missing <param name="id"/> documentation for "M:NHibernate.ISessionFactory.EvictCollection(System.String,System.Object)"]

See Also