Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCCacheRule::SetSizeBound[C++]

FPCCacheRule.SetSizeBound [Visual Basic]

[C++]

The SetSizeBound method sets the size limit according to which objects can or cannot be cached.

HRESULT SetSizeBound(
  VARIANT_BOOL Enable,
  long Size,
  FpcSizeUnits Units
);

Parameters

Enable
[in] Required. Boolean value that indicates whether the size limit is enabled.
Size
[in, optional] A 32-bit integer that defines the size limit. The default value is 0.
Units
[in, optional] Value from the FpcSizeUnits enumeration that indicates whether the size limit is defined in kilobytes, megabytes, or gigabytes. The default value is fpcKB, which indicates that the size limit is defined in kilobytes.

Return Values

This method returns S_OK if the call is successful; otherwise, it returns an error code.
[Visual Basic]

The SetSizeBound method sets the size limit according to which objects can or cannot be cached.

Sub SetSizeBound( _
  ByVal Enable As Boolean, _
  [ ByVal Size As Long ], _
  [ ByVal Units As FpcSizeUnits ] _
)

Parameters

Enable
[in] Required. Boolean value that indicates whether the size limit is enabled.
Size
[in, optional] A 32-bit integer that defines the size limit. The default value is 0.
Units
[in, optional] Value from the FpcSizeUnits enumeration that indicates whether the size limit is defined in kilobytes, megabytes, or gigabytes. The default value is fpcKB, which indicates that the size limit is defined in kilobytes.

Return Values

This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration Server 2004 Administration Library.

See Also

FPCCacheRule