Click or drag to resize

ChatEventItemCreateAttachment Method

Creates and adds a new attachment to this event.

Namespace: Compiled.EDD.Scripting
Assembly: Compiled.EDD.Scripting (in Compiled.EDD.Scripting.dll) Version: 9.0.0.0-142fa9725
Syntax
C#
public ChatEventAttachmentItem CreateAttachment(
	string? path,
	bool copyFileToChatSource = true
)

Parameters

path  String
The file path of the attachment or 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
ExceptionCondition
ArgumentException Thrown when path does not point to a file.
See Also