DataMenuCommand Constructor (CommandID, EventHandler)
This type has a SecurityCriticalAttribute attribute, which restricts it to internal use by the .NET Framework for Silverlight class library. Application code that uses any member of this type throws a MethodAccessException.
[SECURITY CRITICAL]
Initializes a new instance of the DataMenuCommand class, specifying the command identifier and event.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Public Sub New ( _
command As CommandID, _
handler As EventHandler _
)
public DataMenuCommand(
CommandID command,
EventHandler handler
)
public:
DataMenuCommand(
CommandID^ command,
EventHandler^ handler
)
new :
command:CommandID *
handler:EventHandler -> DataMenuCommand
public function DataMenuCommand(
command : CommandID,
handler : EventHandler
)
Parameters
command
Type: System.ComponentModel.Design.CommandIDA CommandID object containing the unique command ID that links this menu command to the environment's menu.
handler
Type: System.EventHandlerThe event to raise when the user selects the menu item.