CatalogManager.DeleteCatalog

Ee799544.c++_on(en-US,CS.10).gifEe799544.vb_off(en-US,CS.10).gif

Use this method to delete a catalog and derived custom catalogs from the Product Catalog System.

Definition

Sub DeleteCatalog(strCatalogName As String)

Parameters

strCatalogName

A String that contains the name of the catalog to be deleted.

Return Values

None.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to either standard or custom COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors.

The following table shows the custom COM errors that this method can return.

Constant Value Description
E_CAT_CATALOG_DOESNT_EXIST &H88980002 The specified catalog did not exist.

Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

Ee799544.note(en-US,CS.10).gifNote

  • This method cannot be called in a transacted object. This method involves the creation, deletion, or updating of free text indexes. SQL Server does not allow these operations in a transaction.

  • Deleting a catalog will also delete and custom catalogs that were derived from it.

Example

myCatalogManager.DeleteCatalog "OurStore"

See Also

CatalogManager Object

CatalogManager.CreateCatalog


All rights reserved.