Product3.UseCategoryPricing Property (PIA)
The UseCategoryPricing property is a read/write Boolean that determines whether the price of the product will be determined from the PrimaryParent property of the product.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Catalog
…
Public Property UseCategoryPricing As Boolean
[C#]
using Microsoft.CommerceServer.Interop.Catalog;
…
public bool UseCategoryPricing {get; set;}
Property Value
A bool that specifies whether to use category pricing.
Exceptions
This property may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
The following table shows the custom COM errors that a COMException can wrap.
Constant | Value | Description |
---|---|---|
E_CAT_VC_NOT_A_SUPPLIER_CATALOG | [C#] 0x889800F9 [Visual Basic .NET] &H889800F9 |
Invalid catalog type. This API can only be called on a base catalog. |
E_CAT_INVALID_PRIMARY_PARENT | [C#] 0x889800DA [Visual Basic .NET] &H889800DA |
To use category pricing for this product, you should first set a primary parent category. |
E_CAT_PRODUCT_DOESNT_EXIST | [C#] 0x8898001E [Visual Basic .NET] &H8898001E |
The product you specified does not exist. |
E_CAT_CATEGORY_DOESNT_EXIST | [C#] 0x8898001C [Visual Basic .NET] &H8898001C |
The category you specified does not exist. |
E_CAT_PRICING_CAT_PRICELESS | [C#] 0x8898002F [Visual Basic .NET] &H8898002F |
The category you specified has no list price. The list price of the category must be set before using this for pricing. |
Remarks
A value of True indicates that the price of the product will be determined from the PrimaryParent category of the product. A value of False indicates that the price of the product will not be determined from the PrimaryParent category.
Note
- If this product is inherited by a virtual catalog, the PrimaryParent property cannot be set from the virtual catalog.
If the property is set to True the PricingCategory property will be set to and become synonymous with the PrimaryParent property.
Requirements
Namespace: Microsoft.CommerceServer.Interop.Catalog
Platforms: Windows 2000, Windows Server 2003
Assembly: Cataloglib (in Cataloglib.dll)
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.