Leadtools.Medical.Caching Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.03.01
Insert Method
See Also 
Leadtools.Medical.Caching Namespace > Cache Class : Insert Method



id
A String that uniquely identifies the cache item to be added.
data
An array of Byte representing the item data.
priority
The relative precedence of the cache item expressed by CacheItemPriority. Items with lower cache priority will be removed before items with higher priority.
id
A String that uniquely identifies the cache item to be added.
data
An array of Byte representing the item data.
priority
The relative precedence of the cache item expressed by CacheItemPriority. Items with lower cache priority will be removed before items with higher priority.
Inserts a new item to the cache store.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub Insert( _
   ByVal id As String, _
   ByVal data() As Byte, _
   ByVal priority As CacheItemPriority _
) 
Visual Basic (Usage)Copy Code
Dim instance As Cache
Dim id As String
Dim data() As Byte
Dim priority As CacheItemPriority
 
instance.Insert(id, data, priority)
C# 
public virtual void Insert( 
   string id,
   byte[] data,
   CacheItemPriority priority
)
C++/CLI 
public:
virtual void Insert( 
   String^ id,
   array<byte>^ data,
   CacheItemPriority priority
) 

Parameters

id
A String that uniquely identifies the cache item to be added.
data
An array of Byte representing the item data.
priority
The relative precedence of the cache item expressed by CacheItemPriority. Items with lower cache priority will be removed before items with higher priority.

Remarks

This method will always try to insert the cache item without checking if the item exists. If the item already exists in the cache the behavior of this method depends of the implementation object of the IStorageProvider interface.

Use the Add method to check if the item exists in the cache before inserting the item.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family

See Also

Insert requires a Web Viewer Framework Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features