Partilhar via


RemoveProductCatalog Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Removes the ProductCatalog from the catalog set. The Save method should be called to save the changes in the catalog system.

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

Syntax

'Declaration
Public Sub RemoveProductCatalog ( _
    productCatalog As String _
)
'Usage
Dim instance As StaticCatalogSet
Dim productCatalog As String

instance.RemoveProductCatalog(productCatalog)
public void RemoveProductCatalog(
    string productCatalog
)
public:
void RemoveProductCatalog(
    String^ productCatalog
)
public function RemoveProductCatalog(
    productCatalog : String
)

Parameters

  • productCatalog
    Type: System..::.String
    The catalog to remove from the StaticCatalogSet.

Remarks

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

Before removing the catalog from the StaticCatalogSet the productCatalog is validated:

  • To ensure the specified catalog name is not null, has an appropriate length, and does not contain any special characters.

  • To check if the product catalog already exists.

  • To check that the price rule does not already exists.

Permissions

See Also

Reference

StaticCatalogSet Class

StaticCatalogSet Members

Microsoft.CommerceServer.CatalogSets Namespace