User Tools

Site Tools


en:code:data:mailattachment

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:code:data:mailattachment [2020/02/09 13:26]
en:code:data:mailattachment [2021/02/13 11:23] (current)
Line 1: Line 1:
 +====== MailAttachment ======
 +This object represents an attachment to a [[en:code:data:mail|Mail]].
  
 +===== Functions =====
 +
 +==== MailAttachment ====
 +Constructor function.
 +
 +=== Syntax ===
 +<code javascript>
 +var myObject = new MailAttachment();
 +</code>
 +<code javascript>
 +var myObject = new MailAttachment(parameters);
 +</code>
 +
 +=== Arguments ===
 +  - parameters - (object) parameters
 +    * contentType - (string) the content type (see [[https://en.wikipedia.org/wiki/MIME#Content-Type]])
 +    * content - ([[en:code:core:rawdata|RawData]]) the content
 +
 +===== Methods =====
 +
 +==== clone ====
 +Returns a copy of this MailAttachment.
 +
 +=== Syntax ===
 +<code javascript>
 +myObject.clone();
 +</code>
 +
 +=== Returns ===
 +  * (MailAttachment) a copy of this MailAttachment
 +
 +=== Example ===
 +<code javascript>
 +var copyOfMyObject = myObject.clone();
 +</code>
 +
 +==== equals ====
 +Returns true if this MailAttachment and another are containing the same data.
 +
 +=== Syntax ===
 +<code javascript>
 +myObject.equals(other);
 +</code>
 +
 +=== Arguments ===
 +  - other - (MailAttachment) another MailAttachment
 +
 +=== Returns ===
 +  * (bool) true if **other** is referencing the same process
 +
 +=== Example ===
 +<code javascript>
 +if(myFirstObject.equals(mySecondObject))
 + //Do something
 +</code>
 +
 +==== toString ====
 +Returns a string representing this MailAttachment.
 +
 +=== Syntax ===
 +<code javascript>
 +myObject.toString();
 +</code>
 +
 +=== Returns ===
 +  * (string) a string representing this MailAttachment
 +
 +=== Example ===
 +<code javascript>
 +Console.print(myObject.toString());
 +</code>
 +
 +=== Notes ===
 +This method is automatically called when trying to convert a MailAttachment to a string.
 +
 +===== Enumerations =====
 +
 +==== KillMode ====
 +Policy to use when trying to kill a process.
 +
 +=== Values ===
 +  - Graceful: Linux: send a SIGTERM signal Windows: close all windows owned by this process
 +  - Forceful: Linux: send a SIGKILL signal Windows: use TerminateProcess to kill this process
 +  - GracefulThenForceful: try to kill the process using the graceful technique, wait for timeout and kill it using the forceful technique
 +
 +==== Priority ====
 +A process priority.
 +
 +=== Values ===
 +  - AboveNormal: above normal
 +  - BelowNormal: below normal
 +  - High: high
 +  - Idle: idle
 +  - Normal: normal
 +  - Realtime: realtime