Partilhar via


Refresh Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Refresh the Catalog Definitions. Ensures that the cache is coherent with the current design-time view definitions.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Overrides Sub Refresh
'Usage
Dim instance As CatalogDefinition

instance.Refresh()
public override void Refresh()
public:
virtual void Refresh() override
public override function Refresh()

Exceptions

Exception Condition
ObjectHasChangesException

The CatalogDefinition has changed. A message "CatalogDefinition_Refresh_HasChanges" is generated.

Remarks

This method is used to flush the cached data. The next time that data is queried, it will be retrieved from the Catalog APIs, and thereby the cache will gradually be filled with the coherent design-time view of the data.

Permissions

See Also

Reference

CatalogDefinition Class

CatalogDefinition Members

Microsoft.CommerceServer.Catalog Namespace