Microsoft.VisualBasic.ApplicationServices 命名空間

包含支援 Visual Basic 應用程式模型並提供應用程式資訊存取的型別。

類別

名稱 Description
ApplicationBase

提供與目前應用程式相關的屬性、方法與事件。

AssemblyInfo

提供取得應用程式資訊的屬性,例如版本號、描述、載入的組件等。

BuiltInRoleConverter

提供型別轉換器,將列舉值BuiltInRole轉換為WindowsBuiltInRole列舉值。

CantStartSingleInstanceException

當單一實例應用程式的後續實例無法連接到第一個實例時,會拋出此例外。

ConsoleApplicationBase

提供與目前應用程式相關的屬性、方法與事件。

NoStartupFormException

當未設定 MainForm 屬性時,Visual Basic 應用模型會拋出此例外。

StartupEventArgs

提供 My.Application.Startup 事件的資料。

StartupNextInstanceEventArgs

提供 My.Application.StartupNextInstance 事件的資料。

UnhandledExceptionEventArgs

提供 My.Application.UnhandledException 事件的資料。

User

提供關於當前使用者資訊的存取權限。

WebUser

提供關於當前使用者資訊的存取權限。

WindowsFormsApplicationBase

提供與目前應用程式相關的屬性、方法與事件。

列舉

名稱 Description
AuthenticationMode

表示 Visual Basic 應用程式如何驗證 My.User 物件的使用者。

BuiltInRole

指出呼叫 IsInRole(BuiltInRole) 方法時要檢查的角色類型。

ShutdownMode

指示哪種條件應該讓 Windows Forms 應用程式關閉。

委派

名稱 Description
ShutdownEventHandler

代表處理 My.Application.Shutdown 事件的方法。

StartupEventHandler

代表處理 My.Application.Startup 事件的方法。

StartupNextInstanceEventHandler

代表處理 My.Application.StartupNextInstance 事件的方法。

UnhandledExceptionEventHandler

代表處理 My.Application.UnhandledException 事件的方法。

備註

欲了解更多關於Visual Basic應用模型的資訊,請參閱Visual Basic應用模型概覽

另請參閱