Jaa


AddCatalogItem Method (String, String, String, String, Int32, String, String, Boolean, Decimal, Boolean, String, String, Int32)

Add a Catalog Item to this CatalogItemsDataSet and return a CatalogItemsDataSet..::.CatalogItem.

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

Syntax

'Declaration
Public Function AddCatalogItem ( _
    ProductId As String, _
    VariantId As String, _
    CategoryName As String, _
    DefinitionName As String, _
    CatalogClassTypes As Integer, _
    CatalogName As String, _
    BaseCatalogName As String, _
    IsSearchable As Boolean, _
    ListPrice As Decimal, _
    UseCategoryPricing As Boolean, _
    PrimaryParentCategoryName As String, _
    DisplayName As String, _
    Rank As Integer _
) As CatalogItemsDataSet..::.CatalogItem
'Usage
Dim instance As CatalogItemsDataSet..::.CatalogItemsDataTable
Dim ProductId As String
Dim VariantId As String
Dim CategoryName As String
Dim DefinitionName As String
Dim CatalogClassTypes As Integer
Dim CatalogName As String
Dim BaseCatalogName As String
Dim IsSearchable As Boolean
Dim ListPrice As Decimal
Dim UseCategoryPricing As Boolean
Dim PrimaryParentCategoryName As String
Dim DisplayName As String
Dim Rank As Integer
Dim returnValue As CatalogItemsDataSet..::.CatalogItem

returnValue = instance.AddCatalogItem(ProductId, _
    VariantId, CategoryName, DefinitionName, _
    CatalogClassTypes, CatalogName, _
    BaseCatalogName, IsSearchable, ListPrice, _
    UseCategoryPricing, PrimaryParentCategoryName, _
    DisplayName, Rank)
public CatalogItemsDataSet..::.CatalogItem AddCatalogItem(
    string ProductId,
    string VariantId,
    string CategoryName,
    string DefinitionName,
    int CatalogClassTypes,
    string CatalogName,
    string BaseCatalogName,
    bool IsSearchable,
    decimal ListPrice,
    bool UseCategoryPricing,
    string PrimaryParentCategoryName,
    string DisplayName,
    int Rank
)
public:
CatalogItemsDataSet..::.CatalogItem^ AddCatalogItem(
    String^ ProductId, 
    String^ VariantId, 
    String^ CategoryName, 
    String^ DefinitionName, 
    int CatalogClassTypes, 
    String^ CatalogName, 
    String^ BaseCatalogName, 
    bool IsSearchable, 
    Decimal ListPrice, 
    bool UseCategoryPricing, 
    String^ PrimaryParentCategoryName, 
    String^ DisplayName, 
    int Rank
)
public function AddCatalogItem(
    ProductId : String, 
    VariantId : String, 
    CategoryName : String, 
    DefinitionName : String, 
    CatalogClassTypes : int, 
    CatalogName : String, 
    BaseCatalogName : String, 
    IsSearchable : boolean, 
    ListPrice : decimal, 
    UseCategoryPricing : boolean, 
    PrimaryParentCategoryName : String, 
    DisplayName : String, 
    Rank : int
) : CatalogItemsDataSet..::.CatalogItem

Parameters

  • CatalogClassTypes
    Type: System..::.Int32
    Enumeration used to specify which types of catalog objects to return from a search.
  • CatalogName
    Type: System..::.String
    The identifier that identifies the catalog to which the product belongs.
  • BaseCatalogName
    Type: System..::.String
    The name of the Base Catalog for this item.
  • UseCategoryPricing
    Type: System..::.Boolean
    true to indicate that this product should use the category pricing.
  • PrimaryParentCategoryName
    Type: System..::.String
    The name of the primary parent category of this CatalogItems.

Return Value

Type: Microsoft.CommerceServer.Catalog..::.CatalogItemsDataSet..::.CatalogItem
A CatalogItemsDataSet..::.CatalogItem containing the added item.

Remarks

Prioritizing, ordering, or sequencing may involve using the Rank Property. Positive and negative rank values are allowed in the catalog system.

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

Permissions

See Also

Reference

CatalogItemsDataSet..::.CatalogItemsDataTable Class

CatalogItemsDataSet..::.CatalogItemsDataTable Members

AddCatalogItem Overload

Microsoft.CommerceServer.Catalog Namespace