Click or drag to resize

IScriptEngineAddCOMObject(String, Guid, String) Method

Creates a COM/ActiveX object on the specified server and exposes it to script code. The registered class is specified by class identifier (CLSID).

Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax
void AddCOMObject(
	string itemName,
	Guid clsid,
	string serverName
)

Parameters

itemName  String
A name for the new global script item that will represent the object.
clsid  Guid
The class identifier (CLSID) of the registered class to instantiate.
serverName  String
The name of the server on which to create the object.
Remarks
For information about the mapping between host members and script-callable properties and methods, see AddHostObject(String, HostItemFlags, Object).
See Also