Runs an external view provider factory to obtain a view provider.
public:
static void Run(
IFrameworkViewSource^ viewSource
)
viewSource
Type: IFrameworkViewSource
An implementation of a view provider factory.
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.
C++
[Platform::MTAThread]
int main(Platform::Array<Platform::String^>^)
{
ApplicationViewSource^ applicationViewSource = ref new ApplicationViewSource();
CoreApplication::Run(applicationViewSource);
return 0;
}
Namespace: Windows.ApplicationModel.Core
Metadata: windows.winmd