Initializes a new instance of the DynamicStatusMenuCommand class.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Public Sub New ( _
statusHandler As EventHandler, _
invokeHandler As EventHandler, _
id As CommandID _
)
'使用
Dim statusHandler As EventHandler
Dim invokeHandler As EventHandler
Dim id As CommandID
Dim instance As New DynamicStatusMenuCommand(statusHandler, _
invokeHandler, id)
public DynamicStatusMenuCommand(
EventHandler statusHandler,
EventHandler invokeHandler,
CommandID id
)
public:
DynamicStatusMenuCommand(
EventHandler^ statusHandler,
EventHandler^ invokeHandler,
CommandID^ id
)
public function DynamicStatusMenuCommand(
statusHandler : EventHandler,
invokeHandler : EventHandler,
id : CommandID
)
Parameters
statusHandler
Type: System.EventHandlerThe event handler that is called when the menu command status must be updated.
invokeHandler
Type: System.EventHandlerThe event handler that is called when the menu command is invoked.
id
Type: System.ComponentModel.Design.CommandIDThe command ID for the menu command.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DynamicStatusMenuCommand Class