CoreApplication.Run Method

Runs an external view provider factory to obtain a view provider.

Syntax

public:
static void Run(
         IFrameworkViewSource^ viewSource
)  

Parameters

viewSource
Type: IFrameworkViewSource 

An implementation of a view provider factory.

Remarks

Call Run at app startup, passing in your app’s view provider factory.

Call Run within 2 minutes of application startup; otherwise, the application will timeout and be terminated. To facilitate application entry point debugging, this timeout is disabled when running within a debugger.

In the D3D11 Game template, the view provider factory is implemented in the ApplicationViewSource class.

Example

C++

[Platform::MTAThread]
int main(Platform::Array<Platform::String^>^)
{
    ApplicationViewSource^ applicationViewSource = ref new ApplicationViewSource();

    CoreApplication::Run(applicationViewSource);

    return 0;
}  

Requirements

Namespace: Windows.ApplicationModel.Core

Metadata: windows.winmd

See also

Reference

CoreApplication Class

CoreApplication Members

Windows.ApplicationModel.Core Namespace