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 그런 다음 메서드를 호출하여 Windows 셸에 JumpList 변경 내용을 적용합니다. 이 예제는에서 사용할 수 있는 보다 큰 예제의 일부는 JumpList 클래스 개요입니다.

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

설명

점프 목록에는 및 의 두 가지 유형의 항목이 JumpTaskJumpPath포함될 수 있습니다. 는 JumpTask 프로그램에 대한 링크이고 는 JumpPath 파일에 대한 링크입니다.

JumpList 만들어지면 컬렉션이 JumpItems 비어 있습니다. 컬렉션에 또는 JumpTaskJumpPath 개체를 추가할 수 있습니다. 컬렉션에는 프로그램에서 추가한 항목만 포함됩니다. JumpList 또는 Apply 메서드 JumpItems 를 성공적으로 호출 EndInit 하여 를 Windows 셸에 전달한 후 컬렉션에는 작업 표시줄 점프 목록에 성공적으로 추가된 항목만 포함됩니다. 성공적으로 추가되지 않은 항목은 컬렉션에서 JumpItems 제거됩니다. 및 JumpItemsRemovedByUser 이벤트에 대한 JumpItemsRejected 이벤트 처리기를 통해 제거된 항목 목록에 액세스할 수 있습니다.

적용 대상