CatalogManager3.RemovePropertyAttribute Method (PIA)
Use this method to remove a custom property attribute from the Product Catalog System.
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Catalog
…
Public Sub RemovePropertyAttribute(strAttName As String)
[C#]
using Microsoft.CommerceServer.Interop.Catalog;
…
public void RemovePropertyAttribute(string strAttName);
Parameters
[Visual Basic .NET]
- strAttName
A String that contains the name of the attribute to be removed.
[C#]
- strAttrName
A string that contains the name of the attribute 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.
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_DATATYPE | [C#] 0x88980074 [Visual Basic .NET] &H88980074 |
The datatype you specified is invalid |
E_CAT_INVALID_PARAMETER | [C#] 0x889800B6 [Visual Basic .NET] &H889800B6 |
The input parameter <parameter number> is invalid. |
E_CAT_INVALID_COLUMN_LENGTH | [C#] 0x88980040 [Visual Basic .NET] &H88980040 |
The length specified for this property is not between 1 and 4000. |
E_CAT_BUILTIN_ATTRIBUTE | [C#] 0x889800A7 [Visual Basic .NET] &H889800A7 |
The property attribute that you specified is a built in attribute and hence cannot be added or removed from the Product Catalog System. |
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_ATTRIBUTE_DOES_NOT_EXIST | [C#] 0x88980111 [Visual Basic .NET] &H88980111 |
The property 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
Copyright © 2005 Microsoft Corporation.
All rights reserved.