JumpList.Apply メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
JumpListを現在の状態の Windows シェルに送信します。
public:
void Apply();
[System.Security.SecurityCritical]
public void Apply();
public void Apply();
[<System.Security.SecurityCritical>]
member this.Apply : unit -> unit
member this.Apply : unit -> unit
Public Sub Apply ()
- 属性
例外
JumpListは完全には初期化されていません。
例
次の例は、現在の JumpList を取得し、 JumpItems コレクションの内容をクリアする方法を示しています。 Apply メソッドが呼び出され、JumpListの変更が Windows シェルに適用されます。 この例は、 JumpList クラスの概要で使用できるより大きな例の一部です。
private void ClearJumpList(object sender, RoutedEventArgs e)
{
JumpList jumpList1 = JumpList.GetJumpList(App.Current);
jumpList1.JumpItems.Clear();
jumpList1.Apply();
}
注釈
Apply メソッドは、JumpListの内容を現在の状態の Windows シェルに送信します。 この呼び出しが完了すると、windows シェルがタスク バーのジャンプ リストに正常に追加した項目のみが含まれるよう、 JumpItems プロパティが変更されます。 削除された項目の一覧には、 JumpItemsRejected イベントと JumpItemsRemovedByUser イベントのイベント ハンドラーを使用してアクセスできます。