ScriptEngineAddCOMObject(String, Guid) Method |
Creates a COM/ActiveX object 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.4.5
Syntax public void AddCOMObject(
string itemName,
Guid clsid
)
Public Sub AddCOMObject (
itemName As String,
clsid As Guid
)
public:
virtual void AddCOMObject(
String^ itemName,
Guid clsid
) sealed
abstract AddCOMObject :
itemName : string *
clsid : Guid -> unit
override AddCOMObject :
itemName : string *
clsid : Guid -> unit
Parameters
- itemName String
- A name for the new global script item that will represent the object.
- clsid Guid
- The class identifier (CLSID) of the registered class to instantiate.
Implements
IScriptEngineAddCOMObject(String, Guid)Remarks See Also