<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 | ChatEventItem.CreateAttachment Method

Creates and adds a new attachment to this event.

Syntax

C# Copy
public  ChatEventAttachmentItem CreateAttachment(
	string? path,
	bool copyFileToChatSource = true 
)

Parameters
path    String
 
           The file path of the attachment or null to indicate a missing attachment.
copyFileToChatSource    Boolean (Optional)
             Whether to copy the file
path points to to the chat source's directory.

Return Value
ChatEventAttachmentItem
The created attachment.

Exceptions

Exception Condition
ArgumentException Thrown when path does not point to a file.

See Also

Reference
ChatEventItem Class
Compiled.EDD.Scripting Namespace