Share via


IFPCCacheConfiguration::MemoryUsagePercentage property

Applies to: desktop apps only

The MemoryUsagePercentage property gets or sets the percentage of physical memory that may be used for caching.

This property is read/write.

Syntax

HRESULT put_MemoryUsagePercentage(
  long lMemoryUsage
);

HRESULT get_MemoryUsagePercentage(
  long *plMemoryUsage
);
' Data type: Long

Property MemoryUsagePercentage( _
  ByVal lMemoryUsage As long, _
  ByVal plMemoryUsage As long _
) As Long

Property value

A 32-bit integer that specifies the percentage of physical memory that may be used for caching.

Error codes

These property methods return S_OK if the call is successful; otherwise, they return an error code.

Remarks

This property is read/write. Its default value is 10, and its range of permissible values is from 0 through 100.

This property corresponds to the Percentage of free memory to use for caching setting in Forefront TMG Management.

If you are using a particular computer primarily for Forefront TMG, this number should be higher because a higher percentage will increase the efficiency of the cache. If the computer's resources are needed for other services, you may want to consider lowering the percentage of physical memory used for Forefront TMG. For more information, see Forefront TMG Caching Mechanism.

After the value of the MemoryUsagePercentage property has been modified, the change must be written to persistent storage by calling the Save method, and the Microsoft Firewall service must be restarted for the change to take effect. For more information about restarting the Firewall service to apply changes, see Restarting Services After Configuration Changes.

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

FPCCacheConfiguration

 

 

Build date: 7/12/2010