Error processing SSI file
LEADTOOLS Caching (Leadtools.Caching assembly)

Show in webframe

Add(String,Object,CacheItemPolicy,String) Method






Unique identifier of the cache item.
Data for the cache item.
Expiration policy to use
Optional name of a region in cache.
Adds a new item into the cache using the specified region name
Syntax
'Declaration
 
Public Overloads Overridable Function Add( _
   ByVal key As String, _
   ByVal value As Object, _
   ByVal policy As CacheItemPolicy, _
   ByVal regionName As String _
) As Boolean
'Usage
 
Dim instance As ObjectCache
Dim key As String
Dim value As Object
Dim policy As CacheItemPolicy
Dim regionName As String
Dim value As Boolean
 
value = instance.Add(key, value, policy, regionName)

Parameters

key
Unique identifier of the cache item.
value
Data for the cache item.
policy
Expiration policy to use
regionName
Optional name of a region in cache.

Return Value

true if the item was added successfully, false if there is an item in the cache that has the same key.
Requirements

Target Platforms

See Also

Reference

ObjectCache Class
ObjectCache Members
Overload List

Error processing SSI file
Leadtools.Caching requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features