다음을 통해 공유


JumpList.Apply 메서드

정의

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

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

설명

메서드는 Apply 현재 상태의 JumpList Windows 셸에 콘텐츠를 보냅니다. 이 호출이 완료되면 JumpItems Windows 셸이 작업 표시줄 점프 목록에 성공적으로 추가한 항목만 포함하도록 속성이 수정됩니다. 이벤트 및 JumpItemsRemovedByUser 이벤트에 대한 JumpItemsRejected 이벤트 처리기를 통해 제거된 항목 목록에 액세스할 수 있습니다.

적용 대상