Share via


IFPCCacheRule::UseCacheCondition property

Applies to: desktop apps only

The UseCacheCondition property gets or sets a value from the FpcCacheAction enumerated type that specifies the conditions under which an object should be retrieved from the cache. The possible types of cache usage behavior are:

  • If there is a valid (unexpired) version of the object in the cache, the cached object should be used. Otherwise, a new version of the object should be obtained from the Internet.
  • If any version of the object is found in the cache, the cached object should be used. Otherwise, the object should be obtained from the Internet.
  • If any version of the object is found in the cache, the cached object should be used. Otherwise, an error page should be returned, and no attempt should be made to obtain the object from the Internet.

For more information see How Forefront TMG Caching Works.

This property is read/write.

Syntax

HRESULT put_UseCacheCondition(
  FpcCacheAction CacheAction
);

HRESULT get_UseCacheCondition(
  FpcCacheAction *pCacheAction
);
' Data type: FpcCacheAction

Property UseCacheCondition( _
  ByVal CacheAction As FpcCacheAction, _
  ByVal pCacheAction As FpcCacheAction _
) As FpcCacheAction

Property value

Value from the FpcCacheAction enumerated type that specifies the cache usage behavior.

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 fpcServeFromCacheIfValidObjectExists, which indicates that the cached object should be used if there is a valid (unexpired) version of the object in the cache.

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

FPCCacheRule

 

 

Build date: 7/12/2010