Summary
Embeds a host object to script code.
- Assembly
- Wyam
.Common .dll - Namespace
- Wyam
.Common .JavaScript - 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. |
Return Value
Type | Description |
---|---|
void |