CoreApplication.Restart Method (String, Object)

Use Restart in your title to terminate the current instance of the title and start a new instance.

A common use of Restart is when a title is structured to use different DLLs when playing different game modes, such as single player vs. multiplayer. Rather than loading DLLs for both modes at all times, title code can switch from one mode to the other by calling Restart and specifying in the uri parameters that indicate the new mode. When the title code restarts, it can load the appropriate DLLs for the new mode, and avoid loading DLLs that will not be used.

Note If multiple versions of the same title exist, for example release, debug, etc., the currently running version will be launched again when the title is restarted. This occurs even if a default App User Mode ID has been previously set using xbapp setdefaultapp.

Syntax

public:
static void Restart(
         String^ uri,
         Object^ context
)  

Parameters

uri
Type: String 

 A deep linking URI.

context
Type: Object 

 Reserved for future use. Do not use this parameter.

Requirements

Namespace: Windows.ApplicationModel.Core

Metadata: windows.winmd

See also

Reference

CoreApplication Class

CoreApplication Members

Windows.ApplicationModel.Core Namespace