初始化 JumpItemsRejectedEventArgs 类的一个新实例,该实例具有指定的参数。
命名空间: Microsoft.Windows.Shell
程序集: Microsoft.Windows.Shell(在 Microsoft.Windows.Shell.dll 中)
语法
声明
Public Sub New ( _
rejectedItems As IList(Of JumpItem), _
reasons As IList(Of JumpItemRejectionReason) _
)
public JumpItemsRejectedEventArgs(
IList<JumpItem> rejectedItems,
IList<JumpItemRejectionReason> reasons
)
public:
JumpItemsRejectedEventArgs(
IList<JumpItem^>^ rejectedItems,
IList<JumpItemRejectionReason>^ reasons
)
new :
rejectedItems:IList<JumpItem> *
reasons:IList<JumpItemRejectionReason> -> JumpItemsRejectedEventArgs
public function JumpItemsRejectedEventArgs(
rejectedItems : IList<JumpItem>,
reasons : IList<JumpItemRejectionReason>
)
参数
- rejectedItems
类型:System.Collections.Generic.IList<JumpItem>
未能通过 Windows shell 添加到跳转列表中的跳转列表项的列表。
- reasons
类型:System.Collections.Generic.IList<JumpItemRejectionReason>
未能将被拒绝的跳转列表项添加到跳转列表中的原因的列表。
异常
异常 | 条件 |
---|---|
ArgumentException | rejectedItems 的数量不等于拒绝 reasons 的数量。 |
备注
每个被拒绝的项目必须具有对应的拒绝原因。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。