Dela via


Application.Start(ApplicationInitializationCallback) Method

Definition

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

public:
 static void Start(ApplicationInitializationCallback ^ callback);
 static void Start(ApplicationInitializationCallback const& 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

Typically, you will not need to call this method directly. If you use Visual Studio to develop your apps, the build system will generate code that includes the necessary call for you.

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

Applies to