Click or drag to resize

IScriptEngineAddHostObject(String, Object) Method

Exposes a host object to script code.

Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax
void AddHostObject(
	string itemName,
	Object target
)

Parameters

itemName  String
A name for the new global script item that will represent the object.
target  Object
The object to expose.
Remarks
For information about the mapping between host members and script-callable properties and methods, see AddHostObject(String, HostItemFlags, Object).
See Also