CantStartSingleInstanceException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This exception is thrown when a subsequent instance of a single-instance application is unable to connect to the first application instance.
public ref class CantStartSingleInstanceException : Exception
[System.Serializable]
public class CantStartSingleInstanceException : Exception
[<System.Serializable>]
type CantStartSingleInstanceException = class
inherit Exception
Public Class CantStartSingleInstanceException
Inherits Exception
- Inheritance
- Attributes
Remarks
A single-instance application differs from a normal application in that only one instance of the application can be running at a time. When a subsequent application instance starts, it attempts to contact the first instance application to pass its command-line arguments. If the first instance cannot be contacted, the CantStartSingleInstanceException is raised in the subsequent application instance. The Visual Basic Application Model does not provide any context information in the exception.
For more information, see Overview of the Visual Basic Application Model.
Constructors
| Name | Description |
|---|---|
| CantStartSingleInstanceException() |
Initializes a new instance of the CantStartSingleInstanceException class. |
| CantStartSingleInstanceException(SerializationInfo, StreamingContext) |
Obsolete.
Initializes a new instance of the CantStartSingleInstanceException class with serialized data. |
| CantStartSingleInstanceException(String, Exception) |
Initializes a new instance of the CantStartSingleInstanceException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
| CantStartSingleInstanceException(String) |
Initializes a new instance of the CantStartSingleInstanceException class with a specified error message. |