<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=6889170&amp;fmt=gif">
Skip to content
  • There are no suggestions because the search field is empty.

Methods | DocumentItem.CreateChatEvent Method

Creates and ties a new chat event to this document.

Syntax

C# Copy
public 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 null, 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

Reference
DocumentItem Class
Compiled.EDD.Scripting Namespace