StartupNextInstanceEventArgs 类

定义

My.Application.StartupNextInstance 事件提供数据。Provides data for the My.Application.StartupNextInstance event.

public ref class StartupNextInstanceEventArgs : EventArgs
public class StartupNextInstanceEventArgs : EventArgs
type StartupNextInstanceEventArgs = class
    inherit EventArgs
Public Class StartupNextInstanceEventArgs
Inherits EventArgs
继承
StartupNextInstanceEventArgs

注解

使用StartupNextInstance Visual Basic 应用程序模型启动单实例应用程序的后续实例时,会发生该事件。The StartupNextInstance event occurs when a subsequent instance of a single-instance application starts, using the Visual Basic Application Model. 有关详细信息,请参阅Visual Basic 应用程序模型的概述For more information, see Overview of the Visual Basic Application Model.

StartupNextInstanceEventArgs包含后续应用程序实例的命令行参数,并指示是否应在退出异常处理程序时将第一个应用程序实例置于前台。StartupNextInstanceEventArgs contains the command-line arguments of the subsequent application instance and indicates whether the first application instance should be brought to the foreground upon exiting the exception handler.

构造函数

StartupNextInstanceEventArgs(ReadOnlyCollection<String>, Boolean)

初始化 StartupNextInstanceEventArgs 类的新实例。Initializes a new instance of the StartupNextInstanceEventArgs class.

属性

BringToForeground

指示第一个应用程序实例是否应在退出异常处理程序时进入前台。Indicates whether the first application instance should be brought to the foreground upon exiting the exception handler.

CommandLine

获取后续应用程序实例的命令行参数。Gets the command-line arguments of the subsequent application instance.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅