Click or drag to resize

ScriptEngineAddHostObject Method (String, Object)

Exposes a host object to script code.

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

Parameters

itemName
Type: SystemString
A name for the new global script item that will represent the object.
target
Type: SystemObject
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