Delen via


DataViewMenuCommand Constructor (Int32, CommandID, EventHandler, EventHandler)

Initializes a new instance of the DataMenuCommand class, specifying the item ID, command identifier, and events.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public Sub New ( _
    itemId As Integer, _
    command As CommandID, _
    statusHandler As EventHandler, _
    handler As EventHandler _
)
public DataViewMenuCommand(
    int itemId,
    CommandID command,
    EventHandler statusHandler,
    EventHandler handler
)
public:
DataViewMenuCommand(
    int itemId, 
    CommandID^ command, 
    EventHandler^ statusHandler, 
    EventHandler^ handler
)
new : 
        itemId:int * 
        command:CommandID * 
        statusHandler:EventHandler * 
        handler:EventHandler -> DataViewMenuCommand
public function DataViewMenuCommand(
    itemId : int, 
    command : CommandID, 
    statusHandler : EventHandler, 
    handler : EventHandler
)

Parameters

  • itemId
    Type: System.Int32

    A numerical value that uniquely identifies a node in the data view hierarchy.

.NET Framework Security

See Also

Reference

DataViewMenuCommand Class

DataViewMenuCommand Overload

Microsoft.VisualStudio.Data.Framework Namespace