Product.PricingCategory
The PricingCategory property is a read/write String that contains the name of the pricing category for this product.
Definition
Property PricingCategory As String
Parameters
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_CATEGORY_DOESNT_EXIST | &H8898001C | The specified category did not exist. |
E_CAT_PRICING_CAT_PRICELESS | &H8898002F | The specified category did not have a list price.
Categories that do not have a list price cannot be used as a pricing category. |
E_CAT_PRODUCT_DOESNT_EXIST | &H8898001E | This product has been deleted. |
Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.
Remarks
Using a category as a Pricing category allows you to set the prices of multiple products by making a single change, rather than having to change the price for each product. Setting the Pricing category for a product family will also set the Pricing category for all the variants of the product family.
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.