Microsoft.VisualBasic.ApplicationServices Namespace
The Microsoft.VisualBasic.ApplicationServices namespace contains types that support the Visual Basic Application Model and provide access to application information.
| Class | Description | |
|---|---|---|
![]() | ApplicationBase | Provides properties, methods, and events related to the current application. |
![]() | AssemblyInfo | Provides properties for getting the information about the application, such as the version number, description, loaded assemblies, and so on. |
![]() | BuiltInRoleConverter | Provides a type converter to convert BuiltInRole enumeration values to WindowsBuiltInRole enumeration values. |
![]() | CantStartSingleInstanceException | This exception is thrown when a subsequent instance of a single-instance application is unable to connect to the first application instance. |
![]() | ConsoleApplicationBase | Provides properties, methods, and events related to the current application. |
![]() | NoStartupFormException | This exception is thrown by the Visual Basic Application Model when the MainForm property has not been set. |
![]() | StartupEventArgs | Provides data for the My.Application.Startup event. |
![]() | StartupNextInstanceEventArgs | Provides data for the My.Application.StartupNextInstance event. |
![]() | UnhandledExceptionEventArgs | Provides data for the My.Application.UnhandledException event. |
![]() | User | Provides access to the information about the current user. |
![]() | WebUser | Provides access to the information about the current user. |
![]() | WindowsFormsApplicationBase | Provides properties, methods, and events related to the current application. |
| Delegate | Description | |
|---|---|---|
![]() | ShutdownEventHandler | Represents the method that will handle the My.Application.Shutdown event. |
![]() | StartupEventHandler | Represents the method that will handle the My.Application.Startup event. |
![]() | StartupNextInstanceEventHandler | Represents the method that will handle the My.Application.StartupNextInstance event. |
![]() | UnhandledExceptionEventHandler | Represents the method that will handle the My.Application.UnhandledException event. |
| Enumeration | Description | |
|---|---|---|
![]() | AuthenticationMode | Indicates how a Visual Basic application authenticates the user for the My.User object. |
![]() | BuiltInRole | Indicates the type of role to check when calling the IsInRole method. |
![]() | ShutdownMode | Indicates which condition should cause a Windows Forms application to shut down. |
For more information about the Visual Basic Application Model, see Overview of the Visual Basic Application Model.


