Click or drag to resize

IScriptEngineAddCOMType(String, HostItemFlags, Guid, String) Method

Imports a COM/ActiveX type from the specified server and exposes it to script code with the specified options. The registered class is specified by class identifier (CLSID).

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


itemName  String
A name for the new global script item that will represent the type.
flags  HostItemFlags
A value that selects options for the operation.
clsid  Guid
The class identifier (CLSID) of the registered class to import.
serverName  String
The name of the server from which to import the type.
For information about the mapping between host members and script-callable properties and methods, see AddHostObject(String, HostItemFlags, Object).
See Also