You are here: Ektron Namespace > .NET Assemblies > Ektron.Cms.API Namespace > Ektron.Cms.API.Content Namespace > Classes > ThreadedDiscussion Class > ThreadedDiscussion Methods > SubscribeToTopic
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
ThreadedDiscussion.SubscribeToTopic Method

Subscribe a user to a topic by providing the ID of the topic, the user's ID and the type of subscription.

C#
public ObjectWatch SubscribeToTopic(Long TopicID, Long ForUserID, EkEnumeration.NotificationType WatchType);
Visual Basic
Public Function SubscribeToTopic(ByVal TopicID As Long, ByVal ForUserID As Long, ByVal WatchType As EkEnumeration.NotificationType) As ObjectWatch
Parameters 
Description 
TopicID 
Numeric ID of the topic to subscribe to. 
ForUserID 
Numeric ID of the user subscribing. 
WatchType 
Type of subscription. Choices are:
  • All - subscribes a user to all topics.
  • Replies - subscribes a user to any replies to the topic he created.
  • Never - unsubscribes a user from the topic.
 

Object watch of the current subscription status.

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!