ApplicationViewSwitcher.SwitchAsync(Int32) | switchAsync(Int32) method

Applies to Windows only

Visually replaces the calling window (app view) with a specified window.

Syntax


Windows.UI.ViewManagement.ApplicationViewSwitcher.switchAsync(viewId).done( /* Your success and error handlers */ );

Parameters

viewId

Type: Number [JavaScript] | System.Int32 [.NET] | int32 [C++]

The ID of the window under preparation for display.

Return value

Type: IAsyncAction

The asynchronous results of the operation. Use this to determine when the async call is complete.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.UI.ViewManagement
Windows::UI::ViewManagement [C++]

Metadata

Windows.winmd

See also

ApplicationViewSwitcher
SwitchAsync(Int32, Int32)
SwitchAsync(Int32, Int32, ApplicationViewSwitchingOptions)

 

 

Show:
© 2014 Microsoft