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.Data
Assembly:  C1.Web.Data.2 (in C1.Web.Data.2.dll)

Syntax

C#
public static bool HasData(
	IC1CacheableObject cacheableObj
)
Visual Basic (Declaration)
Public Shared Function HasData ( _
	cacheableObj As IC1CacheableObject _
) As Boolean

Parameters

cacheableObj
Type: C1.Web.Data..::..IC1CacheableObject
C1WebDataSet or C1WebExpressConnection whose data are looked up in the cache.

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.

See Also