Share via


NewPricingRule Method

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

Creates a new PricingRule with the same schema as CatalogPricingRulesDataSet..::.PricingRulesDataTable.

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

Syntax

'Declaration
Public Function NewPricingRule As CatalogPricingRulesDataSet..::.PricingRule
'Usage
Dim instance As CatalogPricingRulesDataSet..::.PricingRulesDataTable
Dim returnValue As CatalogPricingRulesDataSet..::.PricingRule

returnValue = instance.NewPricingRule()
public CatalogPricingRulesDataSet..::.PricingRule NewPricingRule()
public:
CatalogPricingRulesDataSet..::.PricingRule^ NewPricingRule()
public function NewPricingRule() : CatalogPricingRulesDataSet..::.PricingRule

Return Value

Type: Microsoft.CommerceServer.Catalog..::.CatalogPricingRulesDataSet..::.PricingRule
A CatalogPricingRulesDataSet..::.PricingRule.

Remarks

The returned CatalogPricingRulesDataSet..::.PricingRule contains CatalogName, CatalogPricingRuleType, CategoryName, PriceChange, ProductId, and VariantId.

Permissions

See Also

Reference

CatalogPricingRulesDataSet..::.PricingRulesDataTable Class

CatalogPricingRulesDataSet..::.PricingRulesDataTable Members

Microsoft.CommerceServer.Catalog Namespace