Share via


LRUCache.Lookup Method (PIA)

Use this method to retrieve the value of an element from the cache.

Definition

[Visual Basic .NET]

Import Microsoft.CommerceServer.Interop.Caching
…
Public Function Lookup(bstrKey As String) As Object

[C#]

using Microsoft.CommerceServer.Interop.Caching;
…
public object Lookup(stringbstrKey);

Parameters

[Visual Basic .NET]

  • bstrKey
    A String that contains the name of the element to be retrieved.

[C#]

  • bstrKey
    A string that contains the name of the element to be retrieved.

Return Values

[Visual Basic .NET] If this method completes successfully, it returns an Object that contains the value of the specified element.

[C#] This method returns an object containing the element value.

Exceptions

This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

Remarks

[Visual Basic .NET]

Example

' oFavAd is an Object
oFavAd = myLRUCache.Lookup("Favorite Ad")

Requirements

Namespace: Microsoft.CommerceServer.Interop.Caching

Platforms: Windows 2000, Windows Server 2003

Assembly: cachecomplib (in cachecomplib.dll)

See Also

CacheManager Class

LRUCache Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.