Click or drag to resize

CommenceApp Constructor

Constructor.

Namespace:  Vovin.CmcLibNet
Assembly:  Vovin.CmcLibNet (in Vovin.CmcLibNet.dll) Version: 1.0.7729.42686
Syntax
public CommenceApp()
Exceptions
ExceptionCondition
CommenceNotRunningExceptionCommence is not running (COM error: 0x80131500).
CommenceMultipleInstancesExceptionCommence is running more than 1 instance (COM error: 0x80131500).
Remarks
If the constructor fails because either Commence is not running, or Commence is running multiple instances in the same userprofile, an exception is thrown. COM users (VBScript, VBA, etc.) will not get a useful error message. This is a bit of a problem that I am unsure how to solve. We could incorporate a lazy initialization routine and call that as soon as any of the properties are called, then return a more useful error to a consumer, but that is very messy from a .NET point of view.

Note that this behaviour may change in future releases.

Note that if you want to execute a PowerShell of VBScript script, and Commence is started as administrator (or vice-versa), the script will prompt to start another instance of Commence. The userlevel of the user of the assembly must match the userlevel of the Commence instance.

See Also