MenuActionEventArgs 构造函数

初始化 MenuActionEventArgs 类的新实例。

命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Public Sub New ( _
    context As EditingContext _
)
public MenuActionEventArgs(
    EditingContext context
)
public:
MenuActionEventArgs(
    EditingContext^ context
)
new : 
        context:EditingContext -> MenuActionEventArgs
public function MenuActionEventArgs(
    context : EditingContext
)

参数

异常

异常 条件
ArgumentNullException

context 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参见

参考

MenuActionEventArgs 类

Microsoft.Windows.Design.Interaction 命名空间

PrimarySelectionContextMenuProvider

MenuGroup

MenuAction

ModelItem

其他资源

演练:创建菜单提供程序