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.
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.
The FPCCacheRule object defines the following method.
Method | Description |
---|---|
Sets the minimum or maximum size of the objects that can be cached. |
The FPCCacheRule object defines the following properties.
Property | Description |
---|---|
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. |
|
Gets or sets a Boolean value that indicates whether content received using the Background Intelligent Transfer Service (BITS) will be cached. |
|
Gets or sets a Boolean value that indicates whether content for offline browsing with response code 302 or 307 will be cached. |
|
Gets or sets a Boolean value that indicates whether dynamic responses will be cached even if their headers mark them as not cacheable. |
|
Gets or sets a Boolean value that indicates whether responses are cached when the incoming or outgoing request uses SSL. |
|
Gets or sets the description of the rule. |
|
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. |
|
Gets an FPCSelectionIPs object that specifies the complete set of destination IP addresses to which the rule applies. |
|
Gets or sets a Boolean value that indicates whether the rule is enabled. |
|
Gets an FPCFTPCacheConfiguration object that defines the configuration settings for FTP caching. |
|
Gets an FPCHTTPCacheConfiguration object that defines the configuration settings for HTTP caching. |
|
Gets a Boolean value that indicates whether the rule is preinstalled and cannot be deleted. |
|
Gets or sets the name of the cache rule. |
|
Gets or sets a Boolean value that indicates whether responses will never be cached. |
|
Gets the maximum size of an object that can be cached. |
|
Gets a Boolean value that indicates whether the object size limit is enabled. |
|
Gets a value from the FpcSizeUnits enumerated type that specifies the units in which the ObjectSizeLimit property is expressed. |
|
Gets the ordinal position of the rule in the list of cache rules, which corresponds to their order of application. |
|
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. |
|
Gets or sets a value from the FpcCacheAction enumerated type that specifies the conditions under which an object should be retrieved from the cache. |
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). |
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. |
This object implements the IFPCCacheRule and IFPCCacheRule2 interfaces.
Client | Requires Windows Vista or Windows XP. |
---|---|
Server | Requires Windows Server 2008. |
Version | Requires Forefront Threat Management Gateway (TMG). |
IDL |
Declared in Msfpccom.idl. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.