ScriptEngineAddCOMObject Method (String, Guid, String) |
Creates a COM/ActiveX object on the specified server 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 AddCOMObject(
string itemName,
Guid clsid,
string serverName
)
Public Sub AddCOMObject (
itemName As String,
clsid As Guid,
serverName As String
)
public:
void AddCOMObject(
String^ itemName,
Guid clsid,
String^ serverName
)
member AddCOMObject :
itemName : string *
clsid : Guid *
serverName : string -> unit
Parameters
- itemName
- Type: SystemString
A name for the new global script item that will represent the object. - clsid
- Type: SystemGuid
The class identifier (CLSID) of the registered class to instantiate. - serverName
- Type: SystemString
The name of the server on which to create the object.
Remarks
See Also