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
void AddHostObject(
	string itemName,
	Object target


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