Application.OnStartup(StartupEventArgs) Application.OnStartup(StartupEventArgs) Application.OnStartup(StartupEventArgs) Application.OnStartup(StartupEventArgs) Method

定义

引发 Startup 事件。Raises the Startup event.

protected:
 virtual void OnStartup(System::Windows::StartupEventArgs ^ e);
protected virtual void OnStartup (System.Windows.StartupEventArgs e);
abstract member OnStartup : System.Windows.StartupEventArgs -> unit
override this.OnStartup : System.Windows.StartupEventArgs -> unit
Protected Overridable Sub OnStartup (e As StartupEventArgs)

参数

e
StartupEventArgs StartupEventArgs StartupEventArgs StartupEventArgs

包含事件数据的 StartupEventArgsA StartupEventArgs that contains the event data.

注解

OnStartup 引发 Startup 事件。OnStartup raises the Startup event.

派生自Application的类型可以重写OnStartupA type that derives from Application may override OnStartup. 如果需要引发OnStartup 事件,则重写的方法必须在基类中调用。StartupThe overridden method must call OnStartup in the base class if the Startup event needs to be raised.

适用于

另请参阅