Share via


ICategory::get_RelatedCategories

Ee811088.c++_off(en-US,CS.10).gifEe811088.vb_on(en-US,CS.10).gif

The RelatedCategories property is a read-only recordset that contains all categories related to this category.

Definition

HRESULT ICategory::get_RelatedCategories(_Recordset**RelatedCategories);

Parameters

RelatedCategories

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

Return Values

This method returns an HRESULT indicating whether it completed successfully. See the Error Values section for more details.

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 RelatedCategories parameter contains valid data only if the property is accessed successfully.

The RelatedCategories property contains information on all the relationships this category has to other categories. The recordset returned contains one row for each relationship present.

The returned recordset contains the following fields:

Field Data Type Description
CategoryName String
maximum of 128 characters
The name of the category.
RelationshipName String
maximum of 128 characters
The name of the relationship.
RelationshipDescription String
maximum of 256 characters
The description of the relationship.

See Also

Category Object

ICategory::get_AncestorCategories

ICategory::get_ChildCategories

ICategory::get_ParentCategories

ICategory::AddRelationshipToCategory

ICategory::RemoveRelationshipToCategory


All rights reserved.