Share via


AddCatalog Method (String, Byte[], Boolean, DateTime, DateTime, String, Int16, String, String, Int16, Int32, DateTime, DateTime, String, String, String, String, Int32, String, Boolean)

Add a Catalog to this CatalogsDataSet..::.CatalogsDataTable and return a CatalogsDataSet..::.Catalog.

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

Syntax

'Declaration
Public Function AddCatalog ( _
    CatalogName As String, _
    Timestamp As Byte(), _
    CustomCatalog As Boolean, _
    FreeTextIndexCreated As DateTime, _
    ProductTableUpdated As DateTime, _
    FullTextCatalogName As String, _
    CatalogStatus As Short, _
    VariantId As String, _
    ProductId As String, _
    IsVirtualCatalog As Short, _
    Locale As Integer, _
    StartDate As DateTime, _
    EndDate As DateTime, _
    Currency As String, _
    WeightMeasure As String, _
    DefaultLanguage As String, _
    ReportingLanguage As String, _
    CatalogFlags As Integer, _
    DisplayName As String, _
    IsVirtualCatalogView As Boolean _
) As CatalogsDataSet..::.Catalog
'Usage
Dim instance As CatalogsDataSet..::.CatalogsDataTable
Dim CatalogName As String
Dim Timestamp As Byte()
Dim CustomCatalog As Boolean
Dim FreeTextIndexCreated As DateTime
Dim ProductTableUpdated As DateTime
Dim FullTextCatalogName As String
Dim CatalogStatus As Short
Dim VariantId As String
Dim ProductId As String
Dim IsVirtualCatalog As Short
Dim Locale As Integer
Dim StartDate As DateTime
Dim EndDate As DateTime
Dim Currency As String
Dim WeightMeasure As String
Dim DefaultLanguage As String
Dim ReportingLanguage As String
Dim CatalogFlags As Integer
Dim DisplayName As String
Dim IsVirtualCatalogView As Boolean
Dim returnValue As CatalogsDataSet..::.Catalog

returnValue = instance.AddCatalog(CatalogName, _
    Timestamp, CustomCatalog, FreeTextIndexCreated, _
    ProductTableUpdated, FullTextCatalogName, _
    CatalogStatus, VariantId, ProductId, _
    IsVirtualCatalog, Locale, StartDate, _
    EndDate, Currency, WeightMeasure, _
    DefaultLanguage, ReportingLanguage, _
    CatalogFlags, DisplayName, IsVirtualCatalogView)
public CatalogsDataSet..::.Catalog AddCatalog(
    string CatalogName,
    byte[] Timestamp,
    bool CustomCatalog,
    DateTime FreeTextIndexCreated,
    DateTime ProductTableUpdated,
    string FullTextCatalogName,
    short CatalogStatus,
    string VariantId,
    string ProductId,
    short IsVirtualCatalog,
    int Locale,
    DateTime StartDate,
    DateTime EndDate,
    string Currency,
    string WeightMeasure,
    string DefaultLanguage,
    string ReportingLanguage,
    int CatalogFlags,
    string DisplayName,
    bool IsVirtualCatalogView
)
public:
CatalogsDataSet..::.Catalog^ AddCatalog(
    String^ CatalogName, 
    array<unsigned char>^ Timestamp, 
    bool CustomCatalog, 
    DateTime FreeTextIndexCreated, 
    DateTime ProductTableUpdated, 
    String^ FullTextCatalogName, 
    short CatalogStatus, 
    String^ VariantId, 
    String^ ProductId, 
    short IsVirtualCatalog, 
    int Locale, 
    DateTime StartDate, 
    DateTime EndDate, 
    String^ Currency, 
    String^ WeightMeasure, 
    String^ DefaultLanguage, 
    String^ ReportingLanguage, 
    int CatalogFlags, 
    String^ DisplayName, 
    bool IsVirtualCatalogView
)
public function AddCatalog(
    CatalogName : String, 
    Timestamp : byte[], 
    CustomCatalog : boolean, 
    FreeTextIndexCreated : DateTime, 
    ProductTableUpdated : DateTime, 
    FullTextCatalogName : String, 
    CatalogStatus : short, 
    VariantId : String, 
    ProductId : String, 
    IsVirtualCatalog : short, 
    Locale : int, 
    StartDate : DateTime, 
    EndDate : DateTime, 
    Currency : String, 
    WeightMeasure : String, 
    DefaultLanguage : String, 
    ReportingLanguage : String, 
    CatalogFlags : int, 
    DisplayName : String, 
    IsVirtualCatalogView : boolean
) : CatalogsDataSet..::.Catalog

Parameters

  • Timestamp
    Type: array<System..::.Byte>[]()[]
    The Date/Time the catalog is added.
  • CustomCatalog
    Type: System..::.Boolean
    true to indicate this is a customer/Supplier catalog; otherwise false
  • ProductTableUpdated
    Type: System..::.DateTime
    The Date/Time when product table was last updated.
  • FullTextCatalogName
    Type: System..::.String
    The name of the fulltext catalog used for this catalogs
  • VariantId
    Type: System..::.String
    The variant ID for the product. The variant identifier.
  • ProductId
    Type: System..::.String
    The product ID for the product. The product identifier.
  • IsVirtualCatalog
    Type: System..::.Int16
    0 if this catalog is a Supplier Catalog; 1 if this is a Virtual Catalog.
  • Currency
    Type: System..::.String
    The three-character ISO currency code for the corresponding currency.
  • CatalogFlags
    Type: System..::.Int32
    An enumeration value, Default, Materialize, or None.
  • DisplayName
    Type: System..::.String
    The name to display, dependent upon the localization requirements.
  • IsVirtualCatalogView
    Type: System..::.Boolean
    true to indicate that the catalog exists in a virtual catalog; otherwise false.

Return Value

Type: Microsoft.CommerceServer.Catalog..::.CatalogsDataSet..::.Catalog
A CatalogsDataSet..::.Catalog containing the added Catalog.

Remarks

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

Examples

A new DataTable with the same schema as the current CatalogPropertiesDataSet..::.CatalogPropertiesDataTable, including all table schemas, relations, and constraints. Does not copy any data, but none of the data.

Permissions

See Also

Reference

CatalogsDataSet..::.CatalogsDataTable Class

CatalogsDataSet..::.CatalogsDataTable Members

AddCatalog Overload

Microsoft.CommerceServer.Catalog Namespace