Method AddContext
AddContext(IScriptingApiContext)
Adds a scripting context to the current sandbox environment. This context can provide additional services, configuration, or shared objects that will be available to scripts executed in this sandbox.
Declaration
IAuraScriptSandbox AddContext(IScriptingApiContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| IScriptingApiContext | context | The scripting API context to link. |
Returns
| Type | Description |
|---|---|
| IAuraScriptSandbox | The current IAuraScriptSandbox instance for fluent chaining. |