ScriptEngineAddCOMType Method (String, HostItemFlags, Guid, String) |
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.3.1
Syntaxpublic void AddCOMType(
string itemName,
HostItemFlags flags,
Guid clsid,
string serverName
)
Public Sub AddCOMType (
itemName As String,
flags As HostItemFlags,
clsid As Guid,
serverName As String
)
public:
void AddCOMType(
String^ itemName,
HostItemFlags flags,
Guid clsid,
String^ serverName
)
member AddCOMType :
itemName : string *
flags : HostItemFlags *
clsid : Guid *
serverName : string -> unit
Parameters
- itemName
- Type: SystemString
A name for the new global script item that will represent the type. - flags
- Type: Microsoft.ClearScriptHostItemFlags
A value that selects options for the operation. - 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
See Also