You are here: Ektron Namespace > Web Services API > Ektron.Services Namespace > Classes > Tags Class > Tags Methods > AddTagToCommunityGroup Method > AddTagToCommunityGroup
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
Tags.AddTagToCommunityGroup Method (string, long, long, int)

Applies a Tag to a community group in a specified language by a given language. If the tag text does not already exist, it is created. The newly created ID is accessible via the returned TagData. 

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 = "AddTagToCommunityGroup with user and language", 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.")]
public TagData AddTagToCommunityGroup(string tagText, long groupId, long userId, int languageId);
Visual Basic
<SoapHeader("AuthHeader")>
<SoapHeader("RequestInfoHeader")>
<WebMethod(MessageName = "AddTagToCommunityGroup with user and language", 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.")>
Public Function AddTagToCommunityGroup(tagText As string, groupId As long, userId As long, languageId As Integer) As TagData
Parameters 
Description 
tagText 
The Text of the tag being applied to a community group. 
groupId 
The ID of the community group that is being tagged. 
userId 
The ID of the user applying the tag. 
languageId 
The ID of the language being applied to the tagText. Supply -1 for all languages. 

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!