Attempt to retrieve an object from the Cache
Namespace:
NHibernate.CacheAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Function Get ( _ key As CacheKey, _ txTimestamp As Long _ ) As Object |
C# |
---|
Object Get( CacheKey key, long txTimestamp ) |
Visual C++ |
---|
Object^ Get( CacheKey^ key, long long txTimestamp ) |
JavaScript |
---|
function get(key, 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 |