You are here: Ektron Namespace > .NET Assemblies > Ektron.Cms.API Namespace > Ektron.Cms.API.Content Namespace > Classes > ThreadedDiscussion Class > ThreadedDiscussion Methods > AddReply Method > AddReply
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
ThreadedDiscussion.AddReply Method (Long, String, Long, Integer, Boolean, Boolean, String, FileAttachment)

Adds a Post to the Forum. You can specify a post to reply to. You can post anonymously.

C#
public Long AddReply(Long TopicID, String Message, Long ForUserID, int ReplyToPost, Boolean Approved, Boolean Anonymous, String IPAddress, FileAttachment FileAttachments);
Visual Basic
Public Function AddReply(ByVal TopicID As Long, ByVal Message As String, ByVal ForUserID As Long, ByVal ReplyToPost As Integer, ByVal Approved As Boolean, ByVal Anonymous As Boolean, ByVal IPAddress As String, ByVal FileAttachments() As FileAttachment) As Long
Parameters 
Description 
TopicID 
The numeric ID of the topic to add the post to. 
Message 
The unencoded HTML of the message. 
ForUserID 
The ID of the user who is posting. 
ReplyToPost 
The ID of the post to which the user is replying. 
Approved 
Set to True to approve the post. Otherwise, the post is set to appending. 
Anonymous 
Set to True to add the post anonymously. Otherwise, the post will be attributed to the logged in user. 
IPAddress 
IP address of the poster. 
FileAttachments 
Array of file attachment classes. If attaching documents or images to the post. 

Numeric representing the ID of the post that was added. (Long)

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!