[This is preliminary documentation and is subject to change.]

Inserts a New Topic into the Database

Namespace:  OfficeClip.DBLayer.OfficePortal
Assembly:  OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0

Syntax

C#
public int InsertTopic(
	int forumId,
	string topicName,
	string topicDesc,
	string notifyOnReply,
	string docIdList,
	int userId,
	int groupId
)
Visual Basic (Declaration)
Public Function InsertTopic ( _
	forumId As Integer, _
	topicName As String, _
	topicDesc As String, _
	notifyOnReply As String, _
	docIdList As String, _
	userId As Integer, _
	groupId As Integer _
) As Integer
Visual C++
public:
int InsertTopic(
	int forumId, 
	String^ topicName, 
	String^ topicDesc, 
	String^ notifyOnReply, 
	String^ docIdList, 
	int userId, 
	int groupId
)

Parameters

forumId
Type: System..::.Int32
The forum id.
topicName
Type: System..::.String
The Name of the Topic
topicDesc
Type: System..::.String
Topic Message
notifyOnReply
Type: System..::.String
Flag to indicate that whether to notify the creator of the topic when threre is a new reply posted to this topic
docIdList
Type: System..::.String
The list of document ids of the attachments put with this new topic.
userId
Type: System..::.Int32
The unique id for the user.
groupId
Type: System..::.Int32
The unique id of the group

Return Value

Topic Id

See Also