Click or drag to resize

ScriptEngineAddCOMType Method (String, Guid, String)

Imports a COM/ActiveX type from 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.2.5
Syntax
public void AddCOMType(
	string itemName,
	Guid clsid,
	string serverName
)

Parameters

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