Click or drag to resize

ITaxonomyManagerAssociate Method


Associates a Page with a given collection of Category Nodes.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.5.94
Syntax
void Associate(
	IContentItem contentItem,
	ICategoryNode[] categories
)

Parameters

contentItem
Type: Ingeniux.CMSIContentItem
Page to associate
categories
Type: Ingeniux.CMSICategoryNode
Category node collection to associate with the page
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen the "page: parameter is null
ArgumentExceptionWhen any of the categories are not from this session.
InvalidOperationExceptionWhen user doesn't have rights to manage taxonomy; doesn't have full acess to page; or doesn't have at least read-only access to any of the categories.
Remarks

The "page" parameter value cannot be null. Otherwise, an error is thrown.

The "categories" parameter ignores all null values in the colleciton, but all the categories must be from the current session. Otherwise, an error is thrown.

The current user must either be an administrator or have permissions to manage the taxonomy system. Otherwise an error is thrown.

The current user must have full access to the page node and at least read-only access to provided categories. Otherwise, an error is thrown.

See Also