DataControlCommands 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
DataControlCommands 类包含所有 ASP.NET 数据绑定控件用于提升一致的用户界面(UI)的公共字段。 此类不能被继承。
public ref class DataControlCommands sealed
public sealed class DataControlCommands
type DataControlCommands = class
Public NotInheritable Class DataControlCommands
- 继承
-
DataControlCommands
注解
该 DataControlCommands 类包含数据绑定控件命令名称的公共字段。 类构造函数是私有的,因此无法创建类的实例。 但是,因为它仅包含 const 字符串资源,因此可以使用类构造函数及其公共字段,就像任何类一 static 样。
通过使用 DataControlCommands 类的命令名称,所有 ASP.NET 数据绑定控件及其各自的设计器类都可以对常见命令(如“编辑”或“更新”)使用相同的字符串资源,并正确处理由 IPostBackEventHandler 实例发布的事件。 以下类使用 DataControlCommands:
字段
| 名称 | 说明 |
|---|---|
| CancelCommandName |
表示字符串“Cancel”。 |
| DeleteCommandName |
表示字符串“Delete”。 |
| EditCommandName |
表示字符串“Edit”。 |
| FirstPageCommandArgument |
表示字符串“First”。 |
| InsertCommandName |
表示字符串“Insert”。 |
| LastPageCommandArgument |
表示字符串“Last”。 |
| NewCommandName |
表示字符串“New”。 |
| NextPageCommandArgument |
表示字符串“Next”。 |
| PageCommandName |
表示字符串“Page”。 |
| PreviousPageCommandArgument |
表示字符串“Prev”。 |
| SelectCommandName |
表示字符串“Select”。 |
| SortCommandName |
表示字符串“Sort”。 |
| UpdateCommandName |
表示字符串“Update”。 |
方法
| 名称 | 说明 |
|---|---|
| Equals(Object) |
确定指定的对象是否等于当前对象。 (继承自 Object) |
| GetHashCode() |
用作默认哈希函数。 (继承自 Object) |
| GetType() |
获取当前实例的 Type。 (继承自 Object) |
| MemberwiseClone() |
创建当前 Object的浅表副本。 (继承自 Object) |
| ToString() |
返回一个表示当前对象的字符串。 (继承自 Object) |