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
屬性

備註

Startup 事件發生於應用程式啟動時,若應用程式實作了 Visual Basic 應用程式模型。 欲了解更多資訊,請參閱 Visual Basic 應用模型概述

StartupEventArgs 包含應用程式的命令列參數,並指示是否應取消應用程式啟動。

建構函式

名稱 Description
StartupEventArgs(ReadOnlyCollection<String>)

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

屬性

名稱 Description
Cancel

取得或設定一個值,指示事件是否應被取消。

(繼承來源 CancelEventArgs)
CommandLine

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

方法

名稱 Description
Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於

另請參閱