Click or drag to resize

ICategoryNodeRemoveContentItemT Method


Removes association of this CategoryNode from a given content item.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax
bool RemoveContentItem<T>(
	T contentItem
)
where T : IContentItem

Parameters

contentItem
Type: T

[Missing <param name="contentItem"/> documentation for "M:Ingeniux.CMS.ICategoryNode.RemoveContentItem``1(``0)"]

Type Parameters

T
Content item from which to remove association.

Return Value

Type: Boolean
True if association exist, false otherwise.
Examples
Example removing category association of asset in custom hook:
C#
var assetItem = session.Site.Asset("a/100");
if(assetItem != null){
    category.RemoveContentItem(assetItem);
}
See Also