CatalogManager3.RemoveCatalogAttribute Method (PIA)

Use this method to remove a catalog attribute from the Product Catalog System.

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Catalog
…
Public Sub RemoveCatalogAttribute(strAttributeName As String)

[C#]

using Microsoft.CommerceServer.Interop.Catalog;
…
public void RemoveCatalogAttribute(string strAttributeName);

Parameters

[Visual Basic .NET]

  • strAttributeName
    A String that contains the name of the attribute to be removed.

[C#]

  • strAttributeName
    A string that contains the name of the attribute to be removed.

Exceptions

If the attribute specified in the strAttributeName parameter does not exist, the method will complete successfully and return S_OK.

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

The following table shows the custom COM errors that a COMException can wrap.

Name Value Description
E_CAT_CATMGR_NOT_INITIALIZED

[C#] 0x889800B5

[Visual Basic .NET] &H889800B5

The CatalogManager object has not been initialized. The CatalogManager object should be initialized before calling this method.
E_CAT_INVALID_ATTRIBUTE

[C#] 0x88980117

[Visual Basic .NET] &H88980117

The attribute name you specified is invalid. Attribute names cannot be blank and cannot exceed 36 characters. Attribute names cannot begin with a digit and cannot contain one of the following five reserved characters .,"[]
E_CAT_INVALID_PARAMETER

[C#] 0x889800B6

[Visual Basic .NET] &H889800B6

The input parameter <parameter number> is invalid.
E_CAT_BUILTIN_CATALOG_ATTRIBUTE

[C#] 0x889800B0

[Visual Basic .NET] &H889800B0

The catalog attribute that you specified is a built in catalog attribute and hence cannot be added or removed.
E_CAT_INVALID_PROPERTY_NAME

[C#] 0x889800A2

[Visual Basic .NET] &H889800A2

The property name you specified is invalid. Property names cannot be blank and cannot exceed 100 characters. Property names cannot begin with a digit and cannot contain one of the following five reserved characters .,"[]
E_CAT_CATALOG_ATTR _DOES_NOT_EXIST

[C#] 0x88980112

[Visual Basic .NET] &H88980112

The catalog attribute that you specified does not exist.

Remarks

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

Requirements

Namespace: Microsoft.CommerceServer.Interop.Catalog

Platforms: Windows 2000, Windows Server 2003

Assembly: cataloglib (in cataloglib.dll)

See Also

CatalogManager3 Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.