MemoryUsagePercentage Property of the IFPCCacheConfiguration Interface
The MemoryUsagePercentage property gets or sets the percentage of physical memory that may be used for caching.
C++
HRESULT put_MemoryUsagePercentage(
long lMemoryUsage
);
HRESULT get_MemoryUsagePercentage(
long* plMemoryUsage
);
Parameters
lMemoryUsage
A 32-bit integer that specifies the percentage of physical memory that may be used for caching.plMemoryUsage
Pointer to a variable that on return receives a 32-bit integer specifying the percentage of physical memory that may be used for caching.
Return Value
These property methods return S_OK if the call is successful; otherwise, they return an error code.
Visual Basic
Property MemoryUsagePercentage As Long
Property Value
A 32-bit integer that specifies the percentage of physical memory that may be used for caching.
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
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
Send comments about this topic to Microsoft
Build date: 6/30/2010