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