初始化 SharePointProjectMenuItemsRequestedEventArgs 类的新实例。
命名空间:  Microsoft.VisualStudio.SharePoint
程序集:  Microsoft.VisualStudio.SharePoint(在 Microsoft.VisualStudio.SharePoint.dll 中)
语法
声明
Public Sub New ( _
    project As ISharePointProject, _
    addMenuItems As IMenuItemCollection, _
    actionMenuItems As IMenuItemCollection _
)
public SharePointProjectMenuItemsRequestedEventArgs(
    ISharePointProject project,
    IMenuItemCollection addMenuItems,
    IMenuItemCollection actionMenuItems
)
参数
- project
 类型:Microsoft.VisualStudio.SharePoint.ISharePointProject
 SharePoint 项目的实例。
- addMenuItems
 类型:Microsoft.VisualStudio.SharePoint.IMenuItemCollection
 要在项目上下文菜单“添加新项”区域中显示的菜单项的集合。
- actionMenuItems
 类型:Microsoft.VisualStudio.SharePoint.IMenuItemCollection
 要在项目上下文菜单“操作”区域中显示的菜单项的集合。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。