Share via


LRUCache.SetSize Method (PIA)

Use this method to set the maximum size of the cache.

Definition

[Visual Basic .NET]

Import Microsoft.CommerceServer.Interop.Caching
…
Public Sub SetSize(lSize As Integer)

[C#]

using Microsoft.CommerceServer.Interop.Caching;
…
public void SetSize(int lSize);

Parameters

[Visual Basic .NET]

  • lSize
    An Integer that specifies the size of the cache.

[C#]

  • lSize
    An int that specifies the size of the cache.

Exceptions

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

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.