DynamicStatusMenuCommand Constructor

Initializes a new instance of the DynamicStatusMenuCommand class.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Syntax

'Declaration
Public Sub New ( _
    statusHandler As EventHandler, _
    invokeHandler As EventHandler, _
    id As CommandID _
)
public DynamicStatusMenuCommand(
    EventHandler statusHandler,
    EventHandler invokeHandler,
    CommandID id
)
public:
DynamicStatusMenuCommand(
    EventHandler^ statusHandler, 
    EventHandler^ invokeHandler, 
    CommandID^ id
)
new : 
        statusHandler:EventHandler * 
        invokeHandler:EventHandler * 
        id:CommandID -> DynamicStatusMenuCommand
public function DynamicStatusMenuCommand(
    statusHandler : EventHandler, 
    invokeHandler : EventHandler, 
    id : CommandID
)

Parameters

  • statusHandler
    Type: EventHandler

    The event handler that is called when the menu command status must be updated.

  • invokeHandler
    Type: EventHandler

    The event handler that is called when the menu command is invoked.

  • id
    Type: CommandID

    The command ID for the menu command.

.NET Framework Security

See Also

Reference

DynamicStatusMenuCommand Class

Microsoft.VisualStudio.Modeling.Shell Namespace