←Select platform

Add(String,Byte[],CacheItemPriority) Method

Summary

Adds a new item to the cache store.

Syntax

C#
VB
C++
public virtual void Add(  
   string id, 
   byte[] data, 
   CacheItemPriority priority 
) 
Public Overloads Overridable Sub Add( _ 
   ByVal id As String, _ 
   ByVal data() As Byte, _ 
   ByVal priority As CacheItemPriority _ 
) 
public: 
virtual void Add(  
   String^ id, 
   array<byte>^ data, 
   CacheItemPriority priority 
) 

Parameters

id
A System.String that uniquely identifies the cache item to be added.

data
An array of System.Byte representing the item data.

priority
The relative precedence of the cache item expressed by System.Web.Caching.CacheItemPriority. Items with lower cache priority will be removed before items with higher priority.

Remarks

This method will check whether the item already exists before inserting it. If the item exists this method will throw exception. To force the Cache object to try inserting the cache item call the Insert(String,Byte[],CacheItemPriority) method.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Medical.Caching Assembly
Click or drag to resize