다음을 통해 공유


AddVirtualCatalogRule Method (String, Int16, String, String, String, String)

Add a VirtualCatalogRule to this CatalogVirtualCatalogRulesDataSet and return a CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRule.

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

Syntax

'Declaration
Public Function AddVirtualCatalogRule ( _
    CatalogName As String, _
    VirtualCatalogRuleType As Short, _
    ProductId As String, _
    VariantId As String, _
    CategoryName As String, _
    DisplayName As String _
) As CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRule
'Usage
Dim instance As CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRulesDataTable
Dim CatalogName As String
Dim VirtualCatalogRuleType As Short
Dim ProductId As String
Dim VariantId As String
Dim CategoryName As String
Dim DisplayName As String
Dim returnValue As CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRule

returnValue = instance.AddVirtualCatalogRule(CatalogName, _
    VirtualCatalogRuleType, ProductId, _
    VariantId, CategoryName, DisplayName)
public CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRule AddVirtualCatalogRule(
    string CatalogName,
    short VirtualCatalogRuleType,
    string ProductId,
    string VariantId,
    string CategoryName,
    string DisplayName
)
public:
CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRule^ AddVirtualCatalogRule(
    String^ CatalogName, 
    short VirtualCatalogRuleType, 
    String^ ProductId, 
    String^ VariantId, 
    String^ CategoryName, 
    String^ DisplayName
)
public function AddVirtualCatalogRule(
    CatalogName : String, 
    VirtualCatalogRuleType : short, 
    ProductId : String, 
    VariantId : String, 
    CategoryName : String, 
    DisplayName : String
) : CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRule

Parameters

  • VirtualCatalogRuleType
    Type: System..::.Int16
    The VirtualCatalogRuleType of the Virtual Catalog Rule.

Return Value

Type: Microsoft.CommerceServer.Catalog..::.CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRule
A CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRule containing the added item.

Remarks

The CatalogVirtualCatalogRulesDataSet object must be saved before these changes will be persisted to the database.

Permissions

See Also

Reference

CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRulesDataTable Class

CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRulesDataTable Members

AddVirtualCatalogRule Overload

Microsoft.CommerceServer.Catalog Namespace