CatalogSets.RemoveCatalogFromCatalogSets Method (PIA)
Use this method to remove a catalog from all catalog sets.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Catalog
…
Public Sub RemoveCatalogFromCatalogSets(CatalogName As String)
[C#]
using Microsoft.CommerceServer.Interop.Catalog;
…
public void RemoveCatalogFromCatalogSets(stringCatalogName);
Parameters
[Visual Basic .NET]
- CatalogName
A String that contains the catalog name to be removed.
[C#]
- CatalogName
A string that contains the catalog name to be removed.
Exceptions
This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
Remarks
This method should be called whenever a catalog is deleted, before or after calling the CatalogManager.DeleteCatalog or ProductCatalog.DeleteCustomCatalog methods.
[Visual Basic .NET]
Example
MyCatalogManager.DeleteCatalog("Shoes")
myCatalogSets.RemoveCatalogFromCatalogSets("Shoes")
Requirements
Namespace: Microsoft.CommerceServer.Interop.Catalog
Platforms: Windows 2000, Windows Server 2003
Assembly: cs_ctlgsets (in cs_ctlgsets.dll)
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.