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

My.Application.Startup 事件提供数据。Provides data for the My.Application.Startup event.

StartupNextInstanceEventArgs

My.Application.StartupNextInstance 事件提供数据。Provides data for the My.Application.StartupNextInstance event.

UnhandledExceptionEventArgs

My.Application.UnhandledException 事件提供数据。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.

枚举

AuthenticationMode

指示 Visual Basic 应用程序如何为 My.User 对象对用户进行身份验证。Indicates how a Visual Basic application authenticates the user for the My.User object.

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

表示用来处理 My.Application.Shutdown 事件的方法。Represents the method that will handle the My.Application.Shutdown event.

StartupEventHandler

表示用来处理 My.Application.Startup 事件的方法。Represents the method that will handle the My.Application.Startup event.

StartupNextInstanceEventHandler

表示用来处理 My.Application.StartupNextInstance 事件的方法。Represents the method that will handle the My.Application.StartupNextInstance event.

UnhandledExceptionEventHandler

表示用来处理 My.Application.UnhandledException 事件的方法。Represents the method that will handle the My.Application.UnhandledException event.

注解

有关 Visual Basic 应用程序模型的详细信息,请参阅 Visual Basic 应用程序模型的概述For more information about the Visual Basic Application Model, see Overview of the Visual Basic Application Model.

另请参阅