JumpList.EndInit Method

Definition

用信号通知 JumpList 初始化结束。Signals the end of the JumpList initialization.

public:
 virtual void EndInit();
public void EndInit ();
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
public void EndInit ();
abstract member EndInit : unit -> unit
override this.EndInit : unit -> unit
Public Sub EndInit ()

Implements

Attributes

Exceptions

EndInit() 的此调用未与对 BeginInit() 的调用配对。This call to EndInit() is not paired with a call to BeginInit().

Remarks

JumpList 类实现 ISupportInitialize 接口以支持 JumpList的 XAML 声明。The JumpList class implements the ISupportInitialize interface to support XAML declaration of a JumpList. 仅当 JumpList 在 XAML 中声明并使用附加的属性语法附加到 Application 时,才会调用 EndInit 方法。The EndInit method is only called when the JumpList is declared in XAML and attached to an Application by using the attached property syntax. 不要从代码中调用此方法。You do not call this method from your code.

EndInit 方法与 Apply 方法具有相同的效果。The EndInit method has the same effect as the Apply method. EndInitJumpList 的内容发送到 Windows shell 的当前状态。EndInit sends the content of the JumpList to the Windows shell in its current state. 完成此调用后,将修改 JumpItems 属性,使其只包含 Windows shell 成功添加到其跳转列表中的那些项。After this call is complete, the JumpItems property is modified to contain only those items that the Windows shell successfully added to its Jump List. 可以通过事件处理程序为 JumpItemsRejectedJumpItemsRemovedByUser 事件访问已删除项的列表。You can access the lists of removed items through event handlers for the JumpItemsRejected and JumpItemsRemovedByUser events.

Applies to