IJavaScriptEngine.

EmbedHostType(string, Type) Method

Summary

Embeds a host type to script code.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.JavaScript
Containing Type
IJavaScriptEngine

Syntax

void EmbedHostType(string itemName, Type type)

Remarks

Host types are exposed to script code in the form of objects whose properties and methods are bound to the type's static members.

Parameters

Name Type Description
itemName string The name for the new global variable that will represent the type.
type Type The type to expose.

Return Value

Type Description
void
GitHub