TestJsEngine.

EmbedHostObject(string, Object) Method

Summary

Embeds a host object to script code.

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
GitHub