IScriptEngineAddCOMObject(String, HostItemFlags, Guid, String) Method |
Creates a COM/ActiveX object on the specified server and exposes it to script code with
the specified options. The registered class is specified by class identifier (CLSID).
Namespace: Microsoft.ClearScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax void AddCOMObject(
string itemName,
HostItemFlags flags,
Guid clsid,
string serverName
)
Sub AddCOMObject (
itemName As String,
flags As HostItemFlags,
clsid As Guid,
serverName As String
)
void AddCOMObject(
String^ itemName,
HostItemFlags flags,
Guid clsid,
String^ serverName
)
abstract AddCOMObject :
itemName : string *
flags : HostItemFlags *
clsid : Guid *
serverName : string -> unit
Parameters
- itemName String
- A name for the new global script item that will represent the object.
- flags HostItemFlags
- A value that selects options for the operation.
- clsid Guid
- The class identifier (CLSID) of the registered class to instantiate.
- serverName String
- The name of the server on which to create the object.
Remarks See Also