Compartir a través de


DataMenuCommand Constructor (CommandID, EventHandler, 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 events.

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

Syntax

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

Parameters

See Also

Reference

DataMenuCommand Class

DataMenuCommand Overload

Microsoft.VisualStudio.Data.Framework Namespace