You are here: Ektron Namespace > Web Services API > Ektron.Services 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. 

This method can be accessed through the Tags.asmx file located in:

~/Workarea/webservices/WebServiceAPI/Community/Tags.asmx
C#
[SoapHeader("AuthHeader")]
[SoapHeader("RequestInfoHeader")]
[WebMethod(MessageName = "AddTagToObject", Description = "Applies a Tag to a piece of content.  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.")]
public TagData AddTagToObject(string tagText, long objectId, EkEnumeration.CMSObjectTypes objectType);
Visual Basic
<SoapHeader("AuthHeader")>
<SoapHeader("RequestInfoHeader")>
<WebMethod(MessageName = "AddTagToObject", Description = "Applies a Tag to a piece of content.  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.")>
Public Function AddTagToObject(tagText As string, objectId As long, objectType As EkEnumeration.CMSObjectTypes) As TagData
Parameters 
Description 
tagText 
The text of a tag to being applied to an object. 
objectId 
The ID of the object being tagged. 
objectType 
The 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!