IButtonControl.CommandName 属性

定义

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

C#
public string CommandName { get; set; }

属性值

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

注解

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

适用于

产品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

另请参阅