CatalogManager.DeleteProperty
Use this method to delete a property from the Product Catalog System.
Definition
Sub DeleteProperty(strPropertyName As String)
Parameters
strPropertyName
A String that contains the name of the property to be deleted.
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 | The specified property did not exist. |
E_CAT_PROP_IS_ID | &H88980011 | The specified property is used as either the ProductID property or VariantID property in one or more catalogs. These properties are defined when the catalog is created and cannot be removed. |
E_CAT_PROP_STILL_IN_DEF | &H88980004 | The specified property is used in a definition. Call the RemoveDefinitionProperty method to remove the property from the definition before calling this method. |
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.DeleteProperty "Width"