Initializes a new instance of the CollectionCacheConfiguration class.

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

Syntax

C#
public CollectionCacheConfiguration(
	string collection,
	EntityCacheUsage usage,
	string region
)
Visual Basic
Public Sub New ( _
	collection As String, _
	usage As EntityCacheUsage, _
	region As String _
)
Visual C++
public:
CollectionCacheConfiguration(
	String^ collection, 
	EntityCacheUsage usage, 
	String^ region
)

Parameters

collection
Type: System..::..String
The cache role.
usage
Type: NHibernate.Cfg..::..EntityCacheUsage
Cache strategy.
region
Type: System..::..String
The cache region.

Exceptions

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

See Also