StartupEventArgs 類別

定義

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

public ref class StartupEventArgs : System::ComponentModel::CancelEventArgs
[System.Runtime.InteropServices.ComVisible(false)]
public class StartupEventArgs : System.ComponentModel.CancelEventArgs
[<System.Runtime.InteropServices.ComVisible(false)>]
type StartupEventArgs = class
    inherit CancelEventArgs
Public Class StartupEventArgs
Inherits CancelEventArgs
繼承
StartupEventArgs
屬性

備註

如果應用程式實作 Visual Basic 應用程式模型,就會 Startup 在應用程式啟動時發生此事件。 如需詳細資訊,請參閱 Visual Basic應用程式模型概觀

StartupEventArgs 包含應用程式的命令行自變數,並指出是否應該取消應用程式啟動。

建構函式

StartupEventArgs(ReadOnlyCollection<String>)

初始化 StartupEventArgs 類別的新執行個體。

屬性

Cancel

取得或設定值,這個值表示是否應該取消事件。

(繼承來源 CancelEventArgs)
CommandLine

取得應用程式的命令列引數。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於

另請參閱