ProductCatalog.SetCustomCatalogAttributes
Use this method to set the attributes of a custom catalog.
Definition
Sub SetCustomCatalogAttributes(pRSNewState As _Recordset,Optional fForceUpdate As Variant)
Parameters
pRSNewState
A Recordset object containing the new attributes.
fForceUpdate
A Variant that causes a forced update of the custom 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 error that this method can return.
Constant | Value | Description |
E_CAT_CANNOT_ALTER_CC |
&H88980060 | The specified changes could not be made. |
E_CAT_CUSTOMCATALOG_CHANGED | &H88980035 | The custom catalog has been altered 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 SetCustomCatalogAttributes method to modify the CustomCatalogName attribute of a custom catalog. No other attributes can be modified. The pRSNewState parameter specifies a Recordset object that describes the new attribute values for this custom catalog. The method will fail if the custom catalog has already been published.
Use the Recordset object returned by the GetCustomCatalogAttributes method so that its timestamp can be compared for quality assurance.
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.
Example
myProductCatalog.SetCustomCatalogAttributes rsNewAttribs, TRUE