CatalogManager.SetDefinitionProperties

Ee783857.c++_on(en-US,CS.10).gifEe783857.vb_off(en-US,CS.10).gif

Use this method to change the properties of a category or product definition.

Definition

Sub SetDefinitionProperties(strDefinitionName As _String,pRSNewState As _Recordset,)

Parameters

strDefinitionName

A String that contains the name of the definition.

pRSProperties

A _Recordset that specifies the new properties.

Return Values

None.

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_PROP_DOESNT_EXIST &H88980005 There was no property with the name you specified.
E_CAT_PROP_CHANGED &H88980006 The attributes of the property have changed since the property was last read. This error occurs when the sForceUpdate parameter is False, and the attributes were modified after a call to the CreateProperty or GetPropertyAttributes methods.

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

Remarks

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

Example

myCatalogManager.SetDefinitionProperties "Shirt",pRSProperties

See Also

CatalogManager Object

CatalogManager.CreateProperty


All rights reserved.