Share via


NewVirtualCatalogRule Method

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

Creates a new VirtualCatalogRule with the same schema as CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRulesDataTable.

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

Syntax

'Declaration
Public Function NewVirtualCatalogRule As CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRule
'Usage
Dim instance As CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRulesDataTable
Dim returnValue As CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRule

returnValue = instance.NewVirtualCatalogRule()
public CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRule NewVirtualCatalogRule()
public:
CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRule^ NewVirtualCatalogRule()
public function NewVirtualCatalogRule() : CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRule

Return Value

Type: Microsoft.CommerceServer.Catalog..::.CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRule
A CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRule.

Remarks

The returned VirtualCatalogRule contains a CatalogName, CategoryName, DisplayName, ProductId, VariantId, and VirtualCatalogRuleType.

Permissions

See Also

Reference

CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRulesDataTable Class

CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRulesDataTable Members

Microsoft.CommerceServer.Catalog Namespace