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 이벤트 처리기를 통해 제거된 항목 목록에 액세스할 수 있습니다.

적용 대상