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
- 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.
See Also
Reference
CatalogPricingRulesDataSet..::.PricingRulesDataTable Class
CatalogPricingRulesDataSet..::.PricingRulesDataTable Members