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)

适用于

另请参阅