Click or drag to resize
DocumentTagInfoProviderAddTagToDocument Method

Note: This API is now obsolete.

Adds the specific tag to the specified document.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use IDocumentTagInfoProvider.Add(int documentId, int tagId) instead. WARNING: The suggested replacement has different order of parameters. To get an instance of the interface's implementation, use dependency injection or access the instance directly - DocumentTagInfo.Provider.")]
public static void AddTagToDocument(
	int tagId,
	int documentId
)

Parameters

tagId
Type: SystemInt32
ID of the tag to add
documentId
Type: SystemInt32
ID of the document the tag is added for
See Also