Share via


ApplicationViewSwitcher.SwitchAsync メソッド

定義

オーバーロード

SwitchAsync(Int32)

呼び出し元ウィンドウ (アプリ ビュー) を別のウィンドウに視覚的に切り替えます。

SwitchAsync(Int32, Int32)

呼び出し元のウィンドウ (アプリ ビュー) を指定したウィンドウに視覚的に切り替えます。

SwitchAsync(Int32, Int32, ApplicationViewSwitchingOptions)

呼び出し元のウィンドウ (アプリ ビュー) を指定したウィンドウに視覚的に切り替えます。

SwitchAsync(Int32)

呼び出し元ウィンドウ (アプリ ビュー) を別のウィンドウに視覚的に切り替えます。

public:
 static IAsyncAction ^ SwitchAsync(int viewId);
/// [Windows.Foundation.Metadata.Overload("SwitchAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction SwitchAsync(int const& viewId);
[Windows.Foundation.Metadata.Overload("SwitchAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction SwitchAsync(int viewId);
function switchAsync(viewId)
Public Shared Function SwitchAsync (viewId As Integer) As IAsyncAction

パラメーター

viewId
Int32

int

表示の準備中のウィンドウの ID。

戻り値

操作の非同期結果。 非同期呼び出しがいつ完了するかを判断するには、これを使用します。

属性

注釈

このメソッドは、現在表示されているウィンドウ (コア UI) を呼び出すの Application Single-Threaded Apartment (ASTA) スレッドからのみ呼び出すことができます。

SwitchAsync(System.Int32 toViewId, System.Int32 fromViewId)とは異なり、このメソッドは ASTA スレッドからの呼び出しを介して fromViewId を推論します。

こちらもご覧ください

適用対象

SwitchAsync(Int32, Int32)

呼び出し元のウィンドウ (アプリ ビュー) を指定したウィンドウに視覚的に切り替えます。

public:
 static IAsyncAction ^ SwitchAsync(int toViewId, int fromViewId);
/// [Windows.Foundation.Metadata.Overload("SwitchFromViewAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction SwitchAsync(int const& toViewId, int const& fromViewId);
[Windows.Foundation.Metadata.Overload("SwitchFromViewAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction SwitchAsync(int toViewId, int fromViewId);
function switchAsync(toViewId, fromViewId)
Public Shared Function SwitchAsync (toViewId As Integer, fromViewId As Integer) As IAsyncAction

パラメーター

toViewId
Int32

int

表示の準備中のウィンドウの ID。

fromViewId
Int32

int

現在表示されているウィンドウの呼び出し元の ID。

戻り値

操作の非同期結果。 非同期呼び出しがいつ完了するかを判断するには、これを使用します。

属性

注釈

SwitchAsync(System.Int32 viewId) とは異なり、このメソッドは fromViewId を指定し、呼び出し元が "from" ビューの Application Single-Threaded Apartment (ASTA) スレッドで呼び出しを実行できないようにします。 SwitchAsync(Int32) 呼び出しで推論されたビュー ID と同じビュー ID を明示的に渡すことで、呼び出しの結果は同じになります。

こちらもご覧ください

適用対象

SwitchAsync(Int32, Int32, ApplicationViewSwitchingOptions)

呼び出し元のウィンドウ (アプリ ビュー) を指定したウィンドウに視覚的に切り替えます。

public:
 static IAsyncAction ^ SwitchAsync(int toViewId, int fromViewId, ApplicationViewSwitchingOptions options);
/// [Windows.Foundation.Metadata.Overload("SwitchFromViewWithOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction SwitchAsync(int const& toViewId, int const& fromViewId, ApplicationViewSwitchingOptions const& options);
[Windows.Foundation.Metadata.Overload("SwitchFromViewWithOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction SwitchAsync(int toViewId, int fromViewId, ApplicationViewSwitchingOptions options);
function switchAsync(toViewId, fromViewId, options)
Public Shared Function SwitchAsync (toViewId As Integer, fromViewId As Integer, options As ApplicationViewSwitchingOptions) As IAsyncAction

パラメーター

toViewId
Int32

int

表示の準備中のウィンドウの ID。

fromViewId
Int32

int

現在表示されているウィンドウの呼び出し元の ID。

options
ApplicationViewSwitchingOptions

画面切り替え動作のオプション。

戻り値

操作の非同期結果。 非同期呼び出しがいつ完了するかを判断するには、これを使用します。

属性

注釈

SwitchAsync(System.Int32 viewId) とは異なり、このメソッドは fromViewId を指定し、呼び出し元が "from" ビューの Application Single-Threaded Apartment (ASTA) スレッドで呼び出しを実行できないようにします。 SwitchAsync(Int32) 呼び出しで推論されたビュー ID と同じビュー ID を明示的に渡すことで、呼び出しの結果は同じになります。

こちらもご覧ください

適用対象