en:code:data:mailattachment
Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | en:code:data:mailattachment [2021/02/13 11:23] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== MailAttachment ====== | ||
+ | This object represents an attachment to a [[en: | ||
+ | ===== Functions ===== | ||
+ | |||
+ | ==== MailAttachment ==== | ||
+ | Constructor function. | ||
+ | |||
+ | === Syntax === | ||
+ | <code javascript> | ||
+ | var myObject = new MailAttachment(); | ||
+ | </ | ||
+ | <code javascript> | ||
+ | var myObject = new MailAttachment(parameters); | ||
+ | </ | ||
+ | |||
+ | === Arguments === | ||
+ | - parameters - (object) parameters | ||
+ | * contentType - (string) the content type (see [[https:// | ||
+ | * content - ([[en: | ||
+ | |||
+ | ===== Methods ===== | ||
+ | |||
+ | ==== clone ==== | ||
+ | Returns a copy of this MailAttachment. | ||
+ | |||
+ | === Syntax === | ||
+ | <code javascript> | ||
+ | myObject.clone(); | ||
+ | </ | ||
+ | |||
+ | === Returns === | ||
+ | * (MailAttachment) a copy of this MailAttachment | ||
+ | |||
+ | === Example === | ||
+ | <code javascript> | ||
+ | var copyOfMyObject = myObject.clone(); | ||
+ | </ | ||
+ | |||
+ | ==== equals ==== | ||
+ | Returns true if this MailAttachment and another are containing the same data. | ||
+ | |||
+ | === Syntax === | ||
+ | <code javascript> | ||
+ | myObject.equals(other); | ||
+ | </ | ||
+ | |||
+ | === Arguments === | ||
+ | - other - (MailAttachment) another MailAttachment | ||
+ | |||
+ | === Returns === | ||
+ | * (bool) true if **other** is referencing the same process | ||
+ | |||
+ | === Example === | ||
+ | <code javascript> | ||
+ | if(myFirstObject.equals(mySecondObject)) | ||
+ | //Do something | ||
+ | </ | ||
+ | |||
+ | ==== toString ==== | ||
+ | Returns a string representing this MailAttachment. | ||
+ | |||
+ | === Syntax === | ||
+ | <code javascript> | ||
+ | myObject.toString(); | ||
+ | </ | ||
+ | |||
+ | === Returns === | ||
+ | * (string) a string representing this MailAttachment | ||
+ | |||
+ | === Example === | ||
+ | <code javascript> | ||
+ | Console.print(myObject.toString()); | ||
+ | </ | ||
+ | |||
+ | === 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: | ||
+ | |||
+ | ==== Priority ==== | ||
+ | A process priority. | ||
+ | |||
+ | === Values === | ||
+ | - AboveNormal: | ||
+ | - BelowNormal: | ||
+ | - High: high | ||
+ | - Idle: idle | ||
+ | - Normal: normal | ||
+ | - Realtime: realtime |
en/code/data/mailattachment.txt · Last modified: 2021/02/13 11:23 by 127.0.0.1