Microsoft.VisualBasic.ApplicationServices 命名空间
包含支持 Visual Basic 应用程序模型并提供对应用程序信息的访问权限的类型。 Contains types that support the Visual Basic Application Model and provide access to application information.
类
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 |
提供将 BuiltInRole 枚举值转换为 WindowsBuiltInRole 枚举值的类型转换器。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 |
当未设置 MainForm 属性时,Visual Basic 应用程序模型会引发此异常。This exception is thrown by the Visual Basic Application Model when the MainForm property has not been set. |
StartupEventArgs |
为 |
StartupNextInstanceEventArgs |
为 |
UnhandledExceptionEventArgs |
为 |
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. |
枚举
AuthenticationMode |
指示 Visual Basic 应用程序如何为 |
BuiltInRole |
指示在调用 IsInRole(BuiltInRole) 方法时检查的角色类型。Indicates the type of role to check when calling the IsInRole(BuiltInRole) method. |
ShutdownMode |
指示哪个条件应使 Windows 窗体应用程序关闭。Indicates which condition should cause a Windows Forms application to shut down. |
委托
ShutdownEventHandler |
表示用来处理 |
StartupEventHandler |
表示用来处理 |
StartupNextInstanceEventHandler |
表示用来处理 |
UnhandledExceptionEventHandler |
表示用来处理 |
注解
有关 Visual Basic 应用程序模型的详细信息,请参阅 Visual Basic 应用程序模型的概述。For more information about the Visual Basic Application Model, see Overview of the Visual Basic Application Model.