Returns True if data exist in the session cache for this data set, and also returns cache storage type. Otherwise, returns False.
Namespace:
C1.Web.DataAssembly: C1.Web.Data.2 (in C1.Web.Data.2.dll)
Syntax
C# |
---|
public static bool HasData( IC1CacheableObject cacheableObj, out CacheStorageEnum cacheStorage ) |
Visual Basic (Declaration) |
---|
Public Shared Function HasData ( _ cacheableObj As IC1CacheableObject, _ <OutAttribute> ByRef cacheStorage As CacheStorageEnum _ ) As Boolean |
Parameters
- cacheableObj
- Type: C1.Web.Data..::..IC1CacheableObject
C1WebDataSet or C1WebExpressConnection whose data are looked up in the cache.
- cacheStorage
- Type: C1.Data..::..CacheStorageEnum%
Before this method returns, if it has found data set data in the cache, it sets this argument to the storage type used to store this data set data.
Return Value
Returns True if data exist in the session cache for this data set, and also returns cache storage type. Otherwise, returns False.
Remarks
This method looks for this data set data in the session cache. If it was previously
saved with SaveData(IC1CacheableObject), this method returns True and sets the cacheStorage argument to
the storage type used to store data. Otherwise, it returns False.