ContextMenuItem.Command 屬性
適用於版本2
取得要在按下按鈕時叫用的命令。
命名空間: Microsoft.WebMatrix.Extensibility
組件: Microsoft.WebMatrix.Extensibility (在 Microsoft.WebMatrix.Extensibility.dll 中)
語法
'宣告
Public Property Command As ICommand
Get
Private Set
'用途
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)
屬性值
型別:System.Windows.Input.ICommand
要在按下按鈕時叫用的命令。