CachingEnabled Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets or sets a value indicating whether the catalog system should cache information or not.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Property CachingEnabled As Boolean
'Usage
Dim instance As CatalogContext
Dim value As Boolean
value = instance.CachingEnabled
instance.CachingEnabled = value
public bool CachingEnabled { get; set; }
public:
property bool CachingEnabled {
bool get ();
void set (bool value);
}
public function get CachingEnabled () : boolean
public function set CachingEnabled (value : boolean)
Property Value
Type: System..::.Boolean
true if caching is enabled; otherwise false. Default is false.
Remarks
Use the CachingEnabled property to determine whether caching is enabled. The CachingEnabled property specifies whether or not the catalog system should be cached.
Use the Refresh method to refresh all the information that is cached by the Catalog.
For more information about how the catalog system caches information, see Caching in the Catalog System.
For information about how to configure catalog caching in a web application, see catalog Element.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.