Summary
Embeds a host object to script code.
- Assembly
- Wyam
.Testing .JavaScript .dll - Namespace
- Wyam
.Testing .JavaScript - Containing Type
- TestJsEngine
Syntax
public 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 |