PricingCategoryName Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets or sets the name of the pricing category for the product.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Property PricingCategoryName As String
'Usage
Dim instance As Product
Dim value As String
value = instance.PricingCategoryName
instance.PricingCategoryName = value
public string PricingCategoryName { get; set; }
public:
property String^ PricingCategoryName {
String^ get ();
void set (String^ value);
}
public function get PricingCategoryName () : String
public function set PricingCategoryName (value : String)
Property Value
Type: System..::.String
The pricing category name.
Remarks
If a pricing category is set for a product, then the product will inherit its price from the Pricing category. When the pricing category is removed, the product will get back the price it had before the pricing category was set. Variants will inherit the pricing category from the product family. To set the pricing category for a product, set this property to a category in the catalog. To be used as a pricing category the list price of the category should be greater than 0. To remove the pricing category for a product, set this property to nullNothingnullptra null reference (Nothing in Visual Basic). After you change the pricing category you should call the Save method to save the changes to the catalog system.
Product.PricingCategoryName = "categoryname"
is equivalent to:
Product.PrimaryParentCategoryName = "categoryname";
Product.UseCategoryPricing = 1
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.