IScriptEngineAddCOMType(String, Guid, String) Method |
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.ClearScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax void AddCOMType(
string itemName,
Guid clsid,
string serverName
)
Sub AddCOMType (
itemName As String,
clsid As Guid,
serverName As String
)
void AddCOMType(
String^ itemName,
Guid clsid,
String^ serverName
)
abstract AddCOMType :
itemName : string *
clsid : Guid *
serverName : string -> unit
Parameters
- itemName String
- A name for the new global script item that will represent the type.
- 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.
Remarks See Also