Share via


IButtonControl.CommandName 属性

定义

获取或设置传播到 Command 事件的命令名称。

public:
 property System::String ^ CommandName { System::String ^ get(); void set(System::String ^ value); };
public string CommandName { get; set; }
member this.CommandName : string with get, set
Public Property CommandName As String

属性值

传播到 Command 事件的命令的名称。

注解

实现 接口的 IButtonControl 控件必须实现 CommandArgument 属性和 属性, CommandName 以指示传播到 Command 事件的参数和命令名称。

适用于

另请参阅