- 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.
Visual Basic (Declaration) | |
---|---|
Public Overridable Sub Add( _ ByVal id As String, _ ByVal data() As Byte, _ ByVal priority As CacheItemPriority _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
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.
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 method.
Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family