共用方式為


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

其他資源

逐步解說:建立功能表提供者