Click or drag to resize
DocumentCategoryInfoProviderAddDocumentToCategory Method

Note: This API is now obsolete.

Adds document (post) to the specified category.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use IDocumentCategoryInfoProvider.Add(int, int) instead. To get an instance of the interface's implementation, use dependency injection or access the instance directly - DocumentCategoryInfo.Provider.")]
public static void AddDocumentToCategory(
	int documentId,
	int categoryId
)

Parameters

documentId
Type: SystemInt32
ID of document
categoryId
Type: SystemInt32
ID of category
See Also