StartupEventArgs Class
Provides data for the My.Application.Startup event.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
System::EventArgs
System.ComponentModel::CancelEventArgs
Microsoft.VisualBasic.ApplicationServices::StartupEventArgs
| Name | Description | |
|---|---|---|
![]() | StartupEventArgs(ReadOnlyCollection<String^>^) | Initializes a new instance of the StartupEventArgs class. |
| Name | Description | |
|---|---|---|
![]() | Cancel | Gets or sets a value indicating whether the event should be canceled.(Inherited from CancelEventArgs.) |
![]() | CommandLine | Gets the command-line arguments of the application. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
The Startup event occurs when the application starts, if the application implements the Visual Basic Application Model. For more information, see Overview of the Visual Basic Application Model.
StartupEventArgs contains the command-line arguments of the application and indicates whether the application startup should be canceled.
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


