Methods | ChatEventItem.RemoveAttachment Method
Removes the specified attachment from this event.
Syntax
C#
Copy
public void RemoveAttachment( ChatEventAttachmentItem attachment, bool deleteFile = false )
Parameters
attachment ChatEventAttachmentItem
The attachment to remove.
deleteFile Boolean (Optional)
Whether to also delete the file Path points to.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when attachment is null. |
See Also
Reference
ChatEventItem Class
Compiled.EDD.Scripting Namespace