LRUCache.LookupObject Method (PIA)
Use this method to retrieve an object from the cache.
Definition
[Visual Basic .NET]
Import Microsoft.CommerceServer.Interop.Caching
…
Public Function LookupObject(bstrKey As String) As Object
[C#]
using Microsoft.CommerceServer.Interop.Caching;
…
public object LookupObject(stringbstrKey);
Parameters
[Visual Basic .NET]
- bstrKey
A String that contains the name of the object to be retrieved.
[C#]
- bstrKey
A string that contains the name of the object to be retrieved.
Return Values
[Visual Basic .NET] If this method completes successfully, it returns an Object.
[C#] This method returns an object containing the retrieved information.
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
Set oMyObject = oLRUCache.LookupObject("My Object")
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.