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

Show in webframe

Add(CacheItem,CacheItemPolicy) Method






Item to add.
Expiration policy to use
Adds a new item into the cache using the default region
Syntax
public virtual bool Add( 
   CacheItem item,
   CacheItemPolicy policy
)
'Declaration
 
Public Overloads Overridable Function Add( _
   ByVal item As CacheItem, _
   ByVal policy As CacheItemPolicy _
) As Boolean
'Usage
 
Dim instance As ObjectCache
Dim item As CacheItem
Dim policy As CacheItemPolicy
Dim value As Boolean
 
value = instance.Add(item, policy)
public:
virtual bool Add( 
   CacheItem^ item,
   CacheItemPolicy^ policy
) 

Parameters

item
Item to add.
policy
Expiration policy to use

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