Share via


UseCategoryPricing Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets or sets a value describing if this product inherits its price from its primary parent category.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Property UseCategoryPricing As Boolean
'Usage
Dim instance As Product
Dim value As Boolean

value = instance.UseCategoryPricing

instance.UseCategoryPricing = value
public bool UseCategoryPricing { get; set; }
public:
property bool UseCategoryPricing {
    bool get ();
    void set (bool value);
}
public function get UseCategoryPricing () : boolean
public function set UseCategoryPricing (value : boolean)

Property Value

Type: System..::.Boolean
true to indicate that this product inherits it's pricing from the primary parent category; otherwise, false.

Remarks

Setting this property to true makes the product inherit its price from its primary parent category. If this property is true then the product must have a primary parent category with a list price greater than 0. To remove category pricing set this property to false. In that case the price of the product will change to the price it had before category pricing was applied to the product. If you set a product to use category pricing then you cannot set the price on the product. After you change the pricing category you should call the Save method to save the changes to the catalog system.

Permissions

See Also

Reference

Product Class

Product Members

Microsoft.CommerceServer.Catalog Namespace