EmbedHostType(string, Type) Method
Embeds a host type to script code.
Namespace
Statiq.Common
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.