LRUCache.Insert Method (PIA)
Use this method to add an element to the cache.
Definition
[Visual Basic .NET]
Import Microsoft.CommerceServer.Interop.Caching
…
Public Sub Insert(bstrKey As String,
ByRefpvarValue As Object)
[C#]
using Microsoft.CommerceServer.Interop.Caching;
…
public void Insert(stringbstrKey,
ref objectpvarValue);
Parameters
[Visual Basic .NET]
- bstrKey
A String that contains the name of the element to be added to the cache. - pvarValue
An Object that contains the value of the element.
[C#]
- bstrKey
A string that contains the name of the element to be added to the cache. - pvarValue
An object that contains the value of the element.
Exceptions
This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
[Visual Basic .NET]
Example
'oManAd is an Object that references an ad.
oLRUCache.Insert("ManufacturerAd", oManAd)
Requirements
Namespace: Microsoft.CommerceServer.Interop.Caching
Platforms: Windows 2000, Windows Server 2003
Assembly: cachecomplib (in cachecomplib.dll)
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.