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
)
Visual Basic
Public Sub New ( _
	collection As String, _
	usage As EntityCacheUsage _
)
Visual C++
public:
CollectionCacheConfiguration(
	String^ collection, 
	EntityCacheUsage usage
)

Parameters

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

Exceptions

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

See Also