CachedSection TData  MembersKentico 8.1 API Reference
The CachedSection TData  type exposes the following members.
Constructors

  NameDescription
Public methodCachedSection TData (TData , CacheSettings)
Constructor.
Public methodCachedSection TData (TData , Double, Boolean, String,  Object )
Constructor.
Back to Top
Methods

  NameDescription
Public methodCallOnDispose
Adds the given action to the list of actions called when the handler object is disposed
(Inherited from DisposableObject.)
Public methodDispose
Disposes the object.
(Overrides DisposableObject Dispose .)
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodGetData
Attempts to get the data from cache.
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodLock
Locks the event on the given lock object. The context stays locked until the handler is disposed.
(Inherited from DisposableObject.)
Protected methodLogDataError
Logs the error when data was not set
(Inherited from CachedSection.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodRemove
Removes the cache item
(Inherited from CachedSection.)
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodUsing
Adds the given object to the list of the allocated objects to dispose
(Inherited from DisposableObject.)
Back to Top
Extension Methods

  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Back to Top
Fields

  NameDescription
Protected fieldmData
Data to be cached / retrieved
Protected fieldmDataWasSet
Flag indicating whether the data property was set. The data property must be set if progressive caching is enabled
(Inherited from CachedSection.)
Protected fieldmException
Exception that occurred when loading data
(Inherited from CachedSection.)
Protected fieldmLoadData
True if the data should be loaded by the code.
(Inherited from CachedSection.)
Protected fieldmLock
Object for the synchronization.
(Inherited from CachedSection.)
Protected fieldmLockAcquired
Flag whether the lock was acquired for this cached section
(Inherited from CachedSection.)
Protected fieldmRemoved
Flag set when the item is removed from the cache
(Inherited from CachedSection.)
Protected fieldmSettings
Cache settings
(Inherited from CachedSection.)
Back to Top
Properties

  NameDescription
Public propertyBoolCondition
Cache condition.
(Inherited from CachedSection.)
Public propertyCached
If true, the data is used from the cache if available / cached
(Inherited from CachedSection.)
Public propertyCacheDependency
Cache dependency.
(Inherited from CachedSection.)
Public propertyCacheItemName
Cache item name used for the caching.
(Inherited from CachedSection.)
Public propertyCacheMinutes
Cache minutes.
(Inherited from CachedSection.)
Public propertyData
Data to be cached / retrieved
Public propertyException
Exception that occurred within loading of the data
(Inherited from CachedSection.)
Public propertyLoadData
If true, the external code should load the data. Using this property to control does not support distribution of unhandled exceptions in case of progressive caching.
(Inherited from CachedSection.)
Public propertySettings
Cache settings
(Inherited from CachedSection.)
Back to Top
See Also