Initializes a new instance of the ClassCacheConfiguration class.

Namespace: NHibernate.Cfg.ConfigurationSchema
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public ClassCacheConfiguration(
	string clazz,
	EntityCacheUsage usage,
	ClassCacheInclude include,
	string region
)
Visual Basic
Public Sub New ( _
	clazz As String, _
	usage As EntityCacheUsage, _
	include As ClassCacheInclude, _
	region As String _
)
Visual C++
public:
ClassCacheConfiguration(
	String^ clazz, 
	EntityCacheUsage usage, 
	ClassCacheInclude include, 
	String^ region
)

Parameters

clazz
Type: System..::..String
The class full name.
usage
Type: NHibernate.Cfg..::..EntityCacheUsage
Cache strategy.
include
Type: NHibernate.Cfg.ConfigurationSchema..::..ClassCacheInclude
Values for class-cache include.
region
Type: System..::..String
The cache region.

Exceptions

ExceptionCondition
System..::..ArgumentExceptionWhen clazz is null or empty.

See Also