ContextMenuItem.Command Property

Applies to v2.

Gets the command to invoke when the button is clicked.

Namespace:  Microsoft.WebMatrix.Extensibility
Assembly:  Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)

Syntax

'Declaration
Public Property Command As ICommand 
    Get 
    Private Set
'Usage
Dim instance As ContextMenuItem 
Dim value As ICommand 

value = instance.Command
public ICommand Command { get; private set; }
public:
virtual property ICommand^ Command {
    ICommand^ get () sealed;
    private: void set (ICommand^ value) sealed;
}
abstract Command : ICommand with get, private set 
override Command : ICommand with get, private set
final function get Command () : ICommand 
private final function set Command (value : ICommand)

Property Value

Type: System.Windows.Input.ICommand
The command to invoke when the button is clicked.

Implements

IContextMenuItem.Command

See Also

Reference

ContextMenuItem Class

Microsoft.WebMatrix.Extensibility Namespace