ScriptingSettings Class
Contents
[
Hide
]ScriptingSettings class
Script settings. Scripts run only when ScriptingSettings.Enabled is set; the default runs none.
public sealed class ScriptingSettings
Constructors
| Name | Description |
|---|---|
| ScriptingSettings() | Initializes a new instance of the ScriptingSettings class. |
Properties
| Name | Description |
|---|---|
| ClockUnixMilliseconds { get; set; } | The document clock’s start, Unix ms. Default 0. |
| Enabled { get; set; } | Whether document and user scripts run. Default false: scripts are not run and their count is reported as an Information diagnostic ScriptsDisabled. When set, the document’s scripts run in document order, then Configuration.UserScripts, and the mutated document is laid out. Scripts reach no .NET type, make no network or file request except through ResourceSettings, and stop at the budgets below. A script’s error is reported as ScriptError and a budget reached as ScriptLimitExceeded; neither stops the conversion. |
| MaxMemoryBytes { get; set; } | Script memory budget, bytes. Default 64 MiB. |
| MaxStatements { get; set; } | Script statement budget. Default 1,000,000. |
| MaxTimerCallbacks { get; set; } | Timer callbacks run at most. Default 1000. |
| RandomSeed { get; set; } | The random seed. Default 0. |
| ReadyFunction { get; set; } | A document function that must return true before rendering. Default null. A value that is not reached within the budget fails with ReadinessNotReached. |
| TimeoutMilliseconds { get; set; } | Script wall-clock budget, ms. Default 2000. |
| TimerHorizonMilliseconds { get; set; } | Virtual time horizon for timers, ms. Default 1000. |
See Also
- namespace Aspose.Css
- assembly Aspose.CSS