Embeds a host object to script code.
- Namespace
- Statiq
.Common - Containing Type
- IJavaScriptEngine
Syntax
void EmbedHostObject(string itemName, object value)
Remarks
Allows to embed instances of simple classes (or structures) and delegates.
Parameters
| Name | Type | Description |
|---|---|---|
| itemName | string | The name for the new global variable or function that will represent the object. |
| value | object | The object to expose. |