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 (String, Long, EkEnumeration.CMSObjectTypes)

Applies a tag to an object. If the tag text does not already exist, it is created. The newly created ID is accessible via the returned TagData. Adds the tag for the current user and the Tag is saved under the current site language.

C#
public TagData AddTagToObject(String tagText, Long objectId, EkEnumeration.CMSObjectTypes objectType);
Visual Basic
Public Function AddTagToObject(ByVal tagText As String, ByVal objectId As Long, ByVal objectType As EkEnumeration.CMSObjectTypes) As TagData
Parameters 
Description 
tagText 
Text of the tag to apply to an object. 
objectId 
ID of object that is being tagged. 
objectType 
Type of object represented by objectId. 

TagData structure representing the applied tag.

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!