Microsoft.VisualBasic.ApplicationServices 命名空間

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

類別

ApplicationBase

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

ApplyApplicationDefaultsEventArgs

提供 ApplyApplicationDefaults 事件的內容。

AssemblyInfo

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

BuiltInRoleConverter

提供型別轉換子 (Type Converter),以將 BuiltInRole 列舉值轉換為 WindowsBuiltInRole 列舉值。

CantStartSingleInstanceException

當單一執行個體 (Instance) 應用程式的後續執行個體無法連接到第一個應用程式執行個體時,會擲回這個例外狀況。

ConsoleApplicationBase

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

NoStartupFormException

當尚未設定 MainForm 屬性時,Visual Basic 應用程式模型 (Visual Basic Application Model) 會擲回這個例外狀況。

StartupEventArgs

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

StartupNextInstanceEventArgs

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

UnhandledExceptionEventArgs

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

User

提供目前使用者相關資訊的存取。

WebUser

提供目前使用者相關資訊的存取。

WindowsFormsApplicationBase

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

列舉

AuthenticationMode

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

BuiltInRole

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

ShutdownMode

表示應導致 Windows Form 應用程式關閉的條件。

委派

ApplyApplicationDefaultsEventHandler

表示將處理 ApplyApplicationDefaults 事件的回呼方法。

ShutdownEventHandler

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

StartupEventHandler

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

StartupNextInstanceEventHandler

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

UnhandledExceptionEventHandler

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

備註

如需 Visual Basic 應用程式模型的詳細資訊,請參閱 Visual Basic 應用程式模型的概觀

另請參閱