SetSizeBound Method of the IFPCCacheRule Interface

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

C++

Syntax

HRESULT SetSizeBound(
  [in]            VARIANT_BOOL Enable,
  [in, optional]  long Size,
  [in, optional]  FpcSizeUnits Units
);

Parameters

  • Enable
    Required. Boolean value that indicates whether the size limit is enabled.

  • Size
    A 32-bit integer that defines the size limit. The default value is 0.

  • Units
    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 Value

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

Visual Basic

Syntax

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

Parameters

  • Enable
    Required. Boolean value that indicates whether the size limit is enabled.

  • Size
    A 32-bit integer that defines the size limit. The default value is 0.

  • Units
    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 Value

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

Client Requires Windows 7 or Windows Vista.
Server Requires Windows Server 2008 R2 or Windows Server 2008 x64 Edition with SP2.
Version Requires Forefront Threat Management Gateway (TMG) 2010.
IDL

Declared in Msfpccom.idl.

DLL

Requires Msfpccom.dll.

See Also

FPCCacheRule

Send comments about this topic to Microsoft

Build date: 6/30/2010