Attempt to retrieve an object from the Cache
Namespace: NHibernate.CacheAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
Object Get( CacheKey key, long txTimestamp ) |
Visual Basic |
---|
Function Get ( _ key As CacheKey, _ txTimestamp As Long _ ) As Object |
Visual C++ |
---|
Object^ Get( CacheKey^ key, long long txTimestamp ) |
Parameters
- key
- Type: NHibernate.Cache..::..CacheKey
The key (id) of the object to get out of the Cache.
- txTimestamp
- Type: System..::..Int64
A timestamp prior to the transaction start time
Return Value
The cached object or nullNothingnullptra null reference (Nothing in Visual Basic)Exceptions
Exception | Condition |
---|---|
NHibernate.Cache..::..CacheException |