IFPCCacheRule::SetSizeBound method
Applies to: desktop apps only
The SetSizeBound method sets the size limit according to which objects can or cannot be cached.
Syntax
HRESULT SetSizeBound(
[in] VARIANT_BOOL Enable,
[in, optional] long Size,
[in, optional] FpcSizeUnits Units
);
FPCCacheRule.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 value
C++
This method returns S_OK if the call is successful; otherwise, it returns an error code.
VB
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
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only) |
Version |
Forefront Threat Management Gateway (TMG) 2010 |
IDL |
Msfpccom.idl |
DLL |
Msfpccom.dll |
See also
Build date: 7/12/2010