Share via


CatalogSets.UpdateCatalogSet Method (PIA)

Use this method to update an existing catalog set and its basic properties.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Catalog
Imports ADODB26Lib     ‘ for _Recordset
…
Public Sub UpdateCatalogSet(CatalogSetID As String,
  CatalogSetName As String,
  CatalogSetDescription As String,
  bWildCard As Boolean,
  Optional CatalogNamesRS As _Recordset)

[C#]

using Microsoft.CommerceServer.Interop.Catalog;
using ADODB26Lib;                              //For _Recordset
…
public void UpdateCatalogSet(stringCatalogSetID,
  stringCatalogSetName,
  stringCatalogSetDescription,
  boolbWildCard,
  _RecordsetCatalogNamesRS);

Parameters

[Visual Basic .NET]

  • CatalogSetID
    A String that contains the catalog set ID (GUID).
  • CatalogSetName
    A String that contains the catalog set name. The maximum length is 128 characters.
  • CatalogSetDescription
    A String that contains the catalog set description.
  • bWildCard
    A Boolean that indicates which catalogs to use. A value of True indicates use all catalogs. A value of False indicates use the catalogs contained in the CatalogNamesRS parameter.
  • CatalogNamesRS
    The _Recordset interface of a Recordset object that contains the catalog names.

[C#]

  • CatalogSetID
    A string that contains the catalog set ID (GUID).
  • CatalogSetName
    A string that contains the catalog set name. The maximum length is 128 characters.
  • CatalogSetDescription
    A string that contains the catalog set description.
  • bWildCard
    A bool that indicates which catalogs to use. A value of true indicates use all catalogs. A value of false indicates use the catalogs contained in the CatalogNamesRS parameter.
  • CatalogNamesRS
    An ADODB26Lib._Recordset interface to the Recordset object that contains the catalog names. If bWildCard is false, this parameter is ignored and can be set to Type.Missing.

Exceptions

This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

[Visual Basic .NET]

Example

'strCatalogSetID is the GUID for the CatalogSet.
'rsCatalogNames is a Recordset as described in the parameter description.
myCatalogSets.UpdateCatalogSet( _
  strCatalogSetID, "Clothing", "All soft goods", _
  False, rsCatalogNames)

Requirements

Namespace: Microsoft.CommerceServer.Interop.Catalog

Platforms: Windows 2000, Windows Server 2003

Assembly: cs_ctlgsets (in cs_ctlgsets.dll)

See Also

CatalogSets Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.