Udostępnij za pośrednictwem


ProjectionManager.SwapDisplaysForViewsAsync(Int32, Int32) Method

Definition

Asynchronously swaps the calling window (app view) with the window displayed on the projector or other secondary display. The result is that the calling window is displayed on the projector, and the formerly projected window is displayed on the device screen.

public:
 static IAsyncAction ^ SwapDisplaysForViewsAsync(int projectionViewId, int anchorViewId);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction SwapDisplaysForViewsAsync(int const& projectionViewId, int const& anchorViewId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction SwapDisplaysForViewsAsync(int projectionViewId, int anchorViewId);
function swapDisplaysForViewsAsync(projectionViewId, anchorViewId)
Public Shared Function SwapDisplaysForViewsAsync (projectionViewId As Integer, anchorViewId As Integer) As IAsyncAction

Parameters

projectionViewId
Int32

int

The ID of the window currently displayed by the projector.

anchorViewId
Int32

int

The ID of the window to swap with the projected window.

Returns

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

Attributes

Applies to