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

Show in webframe

Add<T>(CacheItem<T>,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<T>( 
   CacheItem<T> item,
   CacheItemPolicy policy
)
'Declaration
 
Public Overloads Overridable Function Add(Of T)( _
   ByVal item As CacheItem(Of T), _
   ByVal policy As CacheItemPolicy _
) As Boolean
'Usage
 
Dim instance As ObjectCache
Dim item As CacheItem(Of T)
Dim policy As CacheItemPolicy
Dim value As Boolean
 
value = instance.Add(Of T)(item, policy)
public<T> boolean add(CacheItem<T> item, Class<?> classOfT, CacheItemPolicy policy)
            
public:
virtual bool Addgeneric<typename T>
( 
   CacheItem<T^>^ item,
   CacheItemPolicy^ policy
) 

Parameters

item
Item to add.
policy
Expiration policy to use.

Type Parameters

T

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