Share via


ICategory::get_ChildCategories

Ee825258.c++_off(en-US,CS.10).gifEe825258.vb_on(en-US,CS.10).gif

The ChildCategories property is a read-only Recordset object that contains the names of categories that exist below this category in the hierarchy.

Definition

HRESULT ICategory::get_ChildCategories(_Recordset**ChildCategories);

Parameters

ChildCategories

[out, retval] A _Recordset object used to return the child categories.

Return Values

This method returns an HRESULT indicating whether it completed successfully.

Error Values

This method returns S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

Remarks

The ChildCategories parameter contains valid data only if the property is accessed successfully.

The ChildCategories recordset contains a row for each of the categories that are currently children of this category. The following table lists the fields for the ChildCategories recordset.

Field Data Type Description
CategoryName String
maximum of 128 characters
The name of the category.
DefinitionName String
maximum of 128 characters
The name of the definition.
CatalogName String
maximum of 128 characters
The name of the Catalog that contains the category.

If this category has no children, an empty recordset is returned whose EOF property is set to VARIANT_TRUE. Your code should check the value of this property to determine if child categories exist.

See Also

Category Object

ICategory::get_ParentCategories

ICategory::get_AncestorCategories


All rights reserved.