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