FPCCacheRule Object

The FPCCacheRule object represents a single cache rule. A cache rule defines cache policy for all content or specific content groups, including:

This object is an element of an FPCCacheRules collection.

Click here to see the Forefront TMG object hierarchy.

For more information about the COM objects related to caching, see Introduction to the Forefront TMG Cache Objects.

Inheritance

This object inherits from the FPCPersist object, which contains methods and properties related to the persistent storage of an object's data. They include methods for exporting the object's data to and importing it from an XML document.

Methods

The FPCCacheRule object defines the following method.

Method Description

SetSizeBound

Sets the minimum or maximum size of the objects that can be cached.

Properties

The FPCCacheRule object defines the following properties.

Property Description

CacheAuthenticatedContent

Gets or sets a Boolean value that indicates whether content supplied after user authentication by the Web server or an upstream proxy server will be cached.

CacheBITSContent

Gets or sets a Boolean value that indicates whether content received using the Background Intelligent Transfer Service (BITS) will be cached.

CacheContentForOfflineBrowsing

Gets or sets a Boolean value that indicates whether content for offline browsing with response code 302 or 307 will be cached.

CacheDynamicContent

Gets or sets a Boolean value that indicates whether dynamic responses will be cached even if their headers mark them as not cacheable.

CacheSSLResponses

Gets or sets a Boolean value that indicates whether responses are cached when the incoming or outgoing request uses SSL.

Description

Gets or sets the description of the rule.

DestinationDomainNameSets

Gets an FPCRefs collection that contains references to the FPCDomainNameSet collections defining the domain name sets included in or excluded from the request destinations to which the rule applies.

DestinationSelectionIPs

Gets an FPCSelectionIPs object that specifies the complete set of destination IP addresses to which the rule applies.

Enabled

Gets or sets a Boolean value that indicates whether the rule is enabled.

FTPConfiguration

Gets an FPCFTPCacheConfiguration object that defines the configuration settings for FTP caching.

HTTPConfiguration

Gets an FPCHTTPCacheConfiguration object that defines the configuration settings for HTTP caching.

IsDefault

Gets a Boolean value that indicates whether the rule is preinstalled and cannot be deleted.

Name

Gets or sets the name of the cache rule.

NeverCacheResponse

Gets or sets a Boolean value that indicates whether responses will never be cached.

ObjectSizeLimit

Gets the maximum size of an object that can be cached.

ObjectSizeLimitEnabled

Gets a Boolean value that indicates whether the object size limit is enabled.

ObjectSizeLimitUnits

Gets a value from the FpcSizeUnits enumerated type that specifies the units in which the ObjectSizeLimit property is expressed.

Order

Gets the ordinal position of the rule in the list of cache rules, which corresponds to their order of application.

URLSets

Gets an FPCRefs collection that contains references to the FPCURLSet collections defining the URL sets included in or excluded from the request destinations to which the rule applies.

UseCacheCondition

Gets or sets a value from the FpcCacheAction enumerated type that specifies the conditions under which an object should be retrieved from the cache.

Methods Inherited from FPCPersist

Name Description
CancelWaitForChanges Cancels the registration established by the WaitForChanges method (for use in C and C++ programming only).
CanImport Returns a Boolean value that indicates whether the object's properties can be imported from the specified XML document.
Export Recursively writes the stored values of all the properties of the object and its subobjects to the specified XML document.
ExportToFile Recursively writes the stored values of all the properties of the object and its subobjects to the specified XML file.
GetServiceRestartMask Retrieves a 32-bit bitmask of the FpcServices enumerated type that specifies which services need to be restarted for currently unsaved changes to take effect.
Import Recursively copies the values of all the properties of the object and of its subobjects from the specified XML document to persistent storage.
ImportFromFile Recursively copies the values of all the properties of the object and of its subobjects from the specified XML file to persistent storage.
LoadDocProperties Provides the XML document's properties so that you can know what information can be imported from the document.
Refresh Recursively reads the values of all the properties of the object and of its subobjects from persistent storage, overwriting any changes that have not been saved.
Save Recursively writes the current values of all the properties of the object and its subobjects to persistent storage.
WaitForChanges Registers to wait for an event indicating that the contents of the object have changed (for use in C and C++ programming only).

Properties Inherited from FPCPersist

Name Description
PersistentName Gets the persistent name of the object. The persistent name of an object is a name that is unique for the object at the respective level of the COM object hierarchy.
VendorParameterSets Gets an FPCVendorParametersSets collection that can hold sets of custom data for extending the object.

Interfaces for C++ Programming

This object implements the IFPCCacheRule and IFPCCacheRule2 interfaces.

Requirements

Client Requires Windows Vista or Windows XP.
Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).
IDL

Declared in Msfpccom.idl.

See Also

COM Objects


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.