使用指定的参数初始化 JumpList 类的新实例。
命名空间: Microsoft.Windows.Shell
程序集: Microsoft.Windows.Shell(在 Microsoft.Windows.Shell.dll 中)
语法
声明
Public Sub New ( _
items As IEnumerable(Of JumpItem), _
showFrequent As Boolean, _
showRecent As Boolean _
)
public JumpList(
IEnumerable<JumpItem> items,
bool showFrequent,
bool showRecent
)
public:
JumpList(
IEnumerable<JumpItem^>^ items,
bool showFrequent,
bool showRecent
)
new :
items:IEnumerable<JumpItem> *
showFrequent:bool *
showRecent:bool -> JumpList
public function JumpList(
items : IEnumerable<JumpItem>,
showFrequent : boolean,
showRecent : boolean
)
参数
- items
类型:System.Collections.Generic.IEnumerable<JumpItem>
在跳转列表中显示的 JumpItem 对象的集合。
- showFrequent
类型:System.Boolean
一个指示常用项是否显示在跳转列表中的值。
- showRecent
类型:System.Boolean
一个指示最近使用的项是否显示在跳转列表中的值。
备注
**“最近”和“经常”类别通常包含许多相同的跳转项。 因此,应用程序通常会在跳转列表中显示“最近”**或 **“常用”**类别,不会同时显示。
.NET Framework 安全性
-
需要完全信任直接调用方。 此成员不能由部分受信任或透明的代码使用。
对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。