You are here: Ektron Namespace > .NET Assemblies > Ektron.Cms.API Namespace > Ektron.Cms.API.Community Namespace > Classes > Tags Class > Tags Methods > AddTagToObject Method > AddTagToObject
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
Tags.AddTagToObject Method (Long, Long, EkEnumeration.CMSObjectTypes, Long, Integer)

Applies a tag to an object.

C#
public AddTagToObject(Long tagId, Long objectId, EkEnumeration.CMSObjectTypes objectType, Long userId, int languageId);
Visual Basic
Public Sub AddTagToObject(ByVal tagId As Long, ByVal objectId As Long, ByVal objectType As EkEnumeration.CMSObjectTypes, ByVal userId As Long, ByVal languageId As Integer)
Parameters 
Description 
tagId 
Id of the tag to apply to an object. 
objectId 
ID of object that is being tagged. 
objectType 
Type of object represented by objectId. 
userId 
ID of the user applying the tag. 
languageId 
ID of the language the tagText should be saved as. Use -1 for all languages. 
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!