Click or drag to resize

ScriptEngineAddHostObject(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
public 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.

Implements

IScriptEngineAddHostObject(String, Object)
Remarks
For information about the mapping between host members and script-callable properties and methods, see AddHostObject(String, HostItemFlags, Object).
See Also