DocumentItemCreateChatEvent Method |  |
Creates and ties a new chat event to this document.
Namespace: Compiled.EDD.ScriptingAssembly: Compiled.EDD.Scripting (in Compiled.EDD.Scripting.dll) Version: 9.0.0.0-142fa9725
Syntaxpublic ChatEventItem CreateChatEvent(
ChatConversationItem conversation,
ChatParticipantItem? sender,
DateTime timestamp,
string? id = null
)
Parameters
- conversation ChatConversationItem
- The conversation the event is a part of.
- sender ChatParticipantItem
- The participant who sent the event.
- timestamp DateTime
- The date at which the event was sent.
- id String (Optional)
- The ID of the event. If , a new ID will be generated.
Return Value
ChatEventItem
The created event.
Exceptions| Exception | Condition |
|---|
| ArgumentException | An event with the same ID already exists in the chat source. |
See Also