You are here: Ektron Namespace > Web Services API > Ektron.Services Namespace > Classes > ThreadedDiscussion Class > ThreadedDiscussion Methods > AddForum
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
ThreadedDiscussion.AddForum Method

Adds a discussion forum to a given board. Accepts name, description, and other parameters. Category ID must be valid for the board ID. Returns the numeric ID of new discussion forum. 

This method can be accessed through the ThreadedDiscussion.asmx file located in:

~/Workarea/webservices/WebServiceAPI/Content/ThreadedDiscussion.asmx
C#
[SoapHeader("AuthHeader")]
[SoapHeader("RequestInfoHeader")]
[WebMethod(MessageName = "AddForum", Description = "")]
public long AddForum(long BoardID, string Name, string Description, bool ModeratePosts, bool LockForum, int SortOrder, long CategoryID);
Visual Basic
<SoapHeader("AuthHeader")>
<SoapHeader("RequestInfoHeader")>
<WebMethod(MessageName = "AddForum", Description = "")>
Public Function AddForum(BoardID As long, Name As string, Description As string, ModeratePosts As bool, LockForum As bool, SortOrder As Integer, CategoryID As long) As long
Parameters 
Description 
BoardID 
The numeric ID of the discussion board to which you want to add a forum. 
Name 
The name of forum. 
Description 
String value for the forum summary. 
ModeratePosts 
Are posts moderated? 
LockForum 
Is the forum locked? 
SortOrder 
Sort order for the new forum. 
CategoryID 
The numeric value of the Category ID the new forum belongs to. 

Returns the numeric ID of the new forum (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!