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

Applies a Tag to a user. 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 = "AddTagToUser with tag id", Description = "Applies a Tag to a user.  If the tag text does not already exist, it is created.  The newly created Id is accessible via the returned TagData.")]
public void AddTagToUser(long tagId, long userId);
Visual Basic
<SoapHeader("AuthHeader")>
<SoapHeader("RequestInfoHeader")>
<WebMethod(MessageName = "AddTagToUser with tag id", Description = "Applies a Tag to a user.  If the tag text does not already exist, it is created.  The newly created Id is accessible via the returned TagData.")>
Public Function AddTagToUser(tagId As long, userId As long) As void
Parameters 
Description 
tagId 
The ID of tag to apply to object. 
userId 
The ID of the user that is being tagged. 
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!