ProductCatalog.SetCatalogAttributes

Ee796878.c++_on(en-US,CS.10).gifEe796878.vb_off(en-US,CS.10).gif

Use this method to set the attributes of a catalog.

Definition

Sub SetCatalogAttributes(pRSCatalogAttributes As _Recordset,Optional fForceUpdate As Variant)

Parameters

pRSCatalogAttributes

A Recordset containing the new attributes.

fForceUpdate

A Variant that causes a forced update of the catalog attributes.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to either standard or custom COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors.

The following table shows the custom COM errors that this method can return.

Constant Value Description
E_CAT_CATALOG_DOESNT_EXIST &H88980002 The catalog did not exist.
E_CAT_CATALOG_CHANGED &H88980012 The catalog has been updated since it was last read.

Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

Use the GetCatalogAttributes method to get a recordset of the current attributes. After the recordset has been modified, use it as the pRSCatalogAttributes parameter to the SetCatalogAttributes method to write the changes back to the catalog. The timestamps in the recordset will be compared to the timestamps of the attributes being updated for error detection.

The catalog Name, ProductID, CatalogID, and VariantID attributes cannot be changed with this method.

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

Example

myProductCatalog.SetCatalogAttributes(rsCatalogAttribs, TRUE)

See Also

ProductCatalog Object

ProductCatalog.GetCatalogAttributes


All rights reserved.