ICatalogManager::DeleteProperty
Use this method to delete a property from the Product Catalog System.
Definition
HRESULT ICatalogManager::DeleteProperty(BSTRstrPropertyName);
Parameters
strPropertyName
[in] A BSTR that contains the name of the property to be deleted.
Return Values
This method returns an HRESULT indicating whether it completed successfully. See the Error Values section for more details.
Error Values
The following table shows the custom COM errors that this method can return.
Constant | Value | Description |
E_CAT_PROP_DOESNT_EXIST | 0x88980005 | The specified property did not exist. |
E_CAT_PROP_IS_ID | 0x88980011 | 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 | 0x88980004 | 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, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return 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.