SingleInstanceEventArgs Class
Provides data for the SingleInstance.NewInstance event when another instance of the application attempts to start.
public sealed class SingleInstanceEventArgs : EventArgs- Inheritance
EventArgsSingleInstanceEventArgs
Constructors
| Name | Description |
|---|---|
| SingleInstanceEventArgs(int, string[]) | Initializes a new instance of the SingleInstanceEventArgs class with the specified process ID and arguments. |
SingleInstanceEventArgs(int, string[])
SingleInstanceEventArgs.csInitializes a new instance of the SingleInstanceEventArgs class with the specified process ID and arguments.
Parameters
processIdint- The process ID of the new instance that is attempting to start.
argumentsstring[]- The command-line arguments passed to the new instance.
Properties
| Name | Description |
|---|---|
| Arguments | Gets the command-line arguments passed to the new instance. |
| ProcessId | Gets the process ID of the new instance that is attempting to start. |
Arguments
SingleInstanceEventArgs.csGets the command-line arguments passed to the new instance.
public string[] Arguments { get; }Property value
string[]