Initializes a new instance of the CollectionCacheConfiguration class.
Namespace: NHibernate.Cfg.ConfigurationSchemaAssembly: 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
| Exception | Condition |
|---|---|
| System..::..ArgumentException | When collection is null or empty. |