Application.Start(ApplicationInitializationCallback) Method

Definition

Provides the entry point and requests initialization of the application. Use the specified ApplicationInitializationCallback to instantiate the Application class.

public:
 static void Start(ApplicationInitializationCallback ^ callback);
public static void Start(ApplicationInitializationCallback callback);
function start(callback)
Public Shared Sub Start (callback As ApplicationInitializationCallback)

Parameters

callback
ApplicationInitializationCallback

The callback that should be invoked during the initialization sequence.

Remarks

This runs a message pump internally, and does not return until the application shuts down.

Typically, you do not need to call this method directly. For example, in Visual Studio, the build system generates code that makes the call.

The callback runs in the same thread as the main view.

Applies to