JumpList.JumpItems プロパティ

定義

ジャンプ リスト内に表示される JumpItem オブジェクトのコレクションを取得します。

public:
 property System::Collections::Generic::List<System::Windows::Shell::JumpItem ^> ^ JumpItems { System::Collections::Generic::List<System::Windows::Shell::JumpItem ^> ^ get(); };
public System.Collections.Generic.List<System.Windows.Shell.JumpItem> JumpItems { get; }
member this.JumpItems : System.Collections.Generic.List<System.Windows.Shell.JumpItem>
Public ReadOnly Property JumpItems As List(Of JumpItem)

プロパティ値

ジャンプ リスト内に表示される JumpItem オブジェクトのコレクション。 既定値は空のコレクションです。

次の例は、現在 JumpList の を取得し、コレクションの内容をクリアする方法を JumpItems 示しています。 Applyその後、 メソッドが呼び出され、JumpListWindows シェルに変更が適用されます。 この例は、クラスの概要で使用できる大きな例の JumpList 一部です。

private void ClearJumpList(object sender, RoutedEventArgs e)
{
    JumpList jumpList1 = JumpList.GetJumpList(App.Current);
    jumpList1.JumpItems.Clear();
    jumpList1.Apply();
}

注釈

ジャンプ リストには、 と の 2 種類の項目をJumpTaskJumpPath含めることができます。 JumpTaskはプログラムへのリンクであり、 JumpPath はファイルへのリンクです。

JumpListが作成されると、JumpItemsコレクションは空になります。 コレクションには、 JumpTask オブジェクトまたは JumpPath オブジェクトを追加できます。 コレクションには、プログラムによって追加された項目のみが含まれます。 JumpListメソッドまたは Apply メソッドの呼び出しが成功して が Windows シェルにEndInit渡されると、JumpItemsコレクションにはタスク バージャンプ リストに正常に追加された項目のみが含まれます。 正常に追加されなかった項目は、コレクションから JumpItems 削除されます。 および イベントのイベント ハンドラーを使用して、削除された項目の一覧にJumpItemsRejectedJumpItemsRemovedByUserアクセスできます。

適用対象