Category3.RemoveChildCategory Method (PIA)
Use this method to remove a category that is a child of this category.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Catalog
…
Public Sub RemoveChildCategory(strCategoryName As String)
[C#]
using Microsoft.CommerceServer.Interop.Catalog;
…
public void RemoveChildCategory(stringstrCategoryName);
Parameters
[Visual Basic .NET]
- strCategoryName
A String that contains the name of the category to be removed as a child of this category.
[C#]
- strCategoryName
A string that contains the name of the category to be removed as a child of this category.
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.
Constant | Value | Description |
---|---|---|
E_CAT_INVALID_OPERATION_FOR_ROOT_CATEGORY | [C#] 0x889800F8 [Visual Basic .NET] &H889800F8 |
This API cannot be called for a root category. |
E_CAT_INVALID_CATEG_LENGTH | [C#] 0x88980047 [Visual Basic .NET] &H88980047 |
The category name you specified is either blank or exceeds the maximum allowed length of 128 characters or cannot be converted to a string. |
E_CAT_VC_INVALID_PROD_ID_OR_CATEGORY_NAME | [C#] 0x889800FB [Visual Basic .NET] &H889800FB |
The value you specified for the ProductID or CategoryName exceeds the maximum allowed length of 348 characters. |
E_CAT_CATEGORY_DOESNT_EXIST | [C#] 0x8898001C [Visual Basic .NET] &H8898001C |
The category you specified doesn't exist. |
E_CAT_VC_ERROR_IN_PROPAGATING_BC_CHANGES | [C#] 0x88980101 [Visual Basic .NET] &H88980101 |
There was an error in propagating the base catalog changes to the dependent virtual catalogs. |
Remarks
Use the RemoveChildCategory method to remove a child category from this category. If the category named in the strCategoryName parameter does not exist, then this method will fail.
[Visual Basic .NET]
Example
myCategory.RemoveChildCategory("T-Shirts")
Requirements
Namespace: Microsoft.CommerceServer.Interop.Catalog
Platforms: Windows 2000, Windows Server 2003
Assembly: cataloglib (in cataloglib.dll)
See Also
Category3.RemoveParentCategory
Copyright © 2005 Microsoft Corporation.
All rights reserved.