WindowsFormsApplicationBase.OnStartup(StartupEventArgs) 메서드

정의

파생 클래스에서 재정의된 경우 애플리케이션이 시작될 때 코드가 실행될 수 있도록 합니다.

protected:
 virtual bool OnStartup(Microsoft::VisualBasic::ApplicationServices::StartupEventArgs ^ eventArgs);
protected virtual bool OnStartup (Microsoft.VisualBasic.ApplicationServices.StartupEventArgs eventArgs);
abstract member OnStartup : Microsoft.VisualBasic.ApplicationServices.StartupEventArgs -> bool
override this.OnStartup : Microsoft.VisualBasic.ApplicationServices.StartupEventArgs -> bool
Protected Overridable Function OnStartup (eventArgs As StartupEventArgs) As Boolean

매개 변수

eventArgs
StartupEventArgs

애플리케이션의 명령줄 인수와 애플리케이션 시작을 취소해야 하는지 여부를 나타냅니다.

반환

애플리케이션을 계속 시작해야 하는지 여부를 나타내는 Boolean입니다.

설명

기본적으로 이 메서드는 Startup 이벤트를 발생시킵니다. 이벤트 처리기는 이벤트 인수의 Cancel 속성을 설정할 수 있습니다. 하는 경우 CancelTrue,이 메서드가 반환 False 애플리케이션 시작을 취소 합니다. 그렇지 않으면 이 메서드가 True을 반환합니다.

적용 대상

추가 정보