Ektron CMS400.NET API Documentation
|
Adds a post to a topic. Set PostDate property to backdate a post. You can specify a post to reply to. You can post anonymously.
public Long AddReply(Long TopicID, String Message, Long ForUserID, int ReplyToPost, DateTime PostDate, Boolean Approved, Boolean Anonymous, String IPAddress, FileAttachment FileAttachments);
Public Function AddReply(ByVal TopicID As Long, ByVal Message As String, ByVal ForUserID As Long, ByVal ReplyToPost As Integer, ByVal PostDate As DateTime, ByVal Approved As Boolean, ByVal Anonymous As Boolean, ByVal IPAddress As String, ByVal FileAttachments() As FileAttachment) As Long
Parameters |
Description |
TopicID |
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 to. |
PostDate |
DateTime value of when the post occurred. |
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 value representing the ID of the post that was added. (Long)
Copyright (c) 2008. All rights reserved.
|
What do you think about this topic? Send feedback!
|