ScriptEngineAddHostObject(String, Object) Method |
Exposes a host object to script code.
Namespace: Microsoft.ClearScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax public void AddHostObject(
string itemName,
Object target
)
Public Sub AddHostObject (
itemName As String,
target As Object
)
public:
virtual void AddHostObject(
String^ itemName,
Object^ target
) sealed
abstract AddHostObject :
itemName : string *
target : Object -> unit
override 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.
Implements
IScriptEngineAddHostObject(String, Object)Remarks See Also