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
- CatalogName
Type: System..::.String
Catalog name of the Virtual Catalog Rules.
- VirtualCatalogRuleType
Type: System..::.Int16
The VirtualCatalogRuleType of the Virtual Catalog Rule.
- ProductId
Type: System..::.String
ProductId of the Virtual Catalog Rule.
- VariantId
Type: System..::.String
VariantId of the Virtual Catalog Rule.
- CategoryName
Type: System..::.String
Category name of the Virtual Catalog Rule.
- DisplayName
Type: System..::.String
Display name for this 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
- 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
CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRulesDataTable Class
CatalogVirtualCatalogRulesDataSet..::.VirtualCatalogRulesDataTable Members