ScriptEngineAddCOMType(String, Guid) Method |
Imports a COM/ActiveX type 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.5.0
Syntaxpublic void AddCOMType(
string itemName,
Guid clsid
)
Public Sub AddCOMType (
itemName As String,
clsid As Guid
)
public:
virtual void AddCOMType(
String^ itemName,
Guid clsid
) sealed
abstract AddCOMType :
itemName : string *
clsid : Guid -> unit
override AddCOMType :
itemName : string *
clsid : Guid -> 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.
Implements
IScriptEngineAddCOMType(String, Guid)
Remarks
See Also