Oracle® WebCenter Interaction Development Kit 10.3.3.0.0

IDiscussion.CreateDiscussionMessage Method 

Creates and returns a discussion message.

IDiscussionMessage CreateDiscussionMessage(
   string subject,
   string body
);

Parameters

subject
The message subject; cannot be null.
body
The message body, cannot be null.

Return Value

The discussion message.

Remarks

Note: This newly created discussion message will not be persistent until Store method is called on the new message. This method is only used for creating topic messages (non-reply messages). To create reply messages, use IDiscussionMessage.CreateDiscussionReplyMessage Below sample code shows how to create a discussion message in a discussion.

IDiscussionMessage message = discussion.CreateDiscussionMessage("Sample Message Subject", "Sample Message Body");

//sets optional message properties
message.Approved = true;
message.Description = "Option description for discussion message";

//store() needs to be called to persist the message.
message.Store();

Exceptions

Exception Type Condition
InvalidOperationException The object has not yet been stored or has already been removed.

See Also

IDiscussion Interface | Plumtree.Remote.PRC.Collaboration.Discussion Namespace