IScriptEngineAddHostObject(String, Object) Method |
Exposes a host object to script code.
Namespace: Microsoft.ClearScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax void AddHostObject(
string itemName,
Object target
)
Sub AddHostObject (
itemName As String,
target As Object
)
void AddHostObject(
String^ itemName,
Object^ target
)
abstract AddHostObject :
itemName : string *
target : Object -> unit
Parameters
- itemName String
- A name for the new global script item that will represent the object.
- target Object
- The object to expose.
Remarks See Also