DataControlCommands 類別

定義

DataControlCommands 類別包含所有 ASP.NET 資料繫結控制項使用的公用欄位,以提升使用者介面 (UI) 的一致性。The DataControlCommands class contains public fields that all ASP.NET data-bound controls use, to promote a consistent user interface (UI). 此類別無法獲得繼承。This class cannot be inherited.

public ref class DataControlCommands sealed
public sealed class DataControlCommands
type DataControlCommands = class
Public NotInheritable Class DataControlCommands
繼承
DataControlCommands

備註

DataControlCommands類別包含資料繫結控制項命令名稱的公用欄位。The DataControlCommands class contains public fields for data-bound control command names. 類別的函數是私用的,因此您無法建立類別的實例。The class constructor is private, so you cannot create an instance of the class. 不過,因為它只包含 const 字串資源,所以您可以使用類別的函式和其公用欄位,就如同任何 static 類別一樣。However, because it only contains const string resources, you can use the class constructor and its public fields just as you would any static class.

使用類別的命令名稱, DataControlCommands 可讓所有 ASP.NET 的資料繫結控制項及其各自的設計工具類別,針對一般命令使用相同的字串資源(例如 "Edit" 或 "Update"),以及正確地處理由實例所張貼的事件 IPostBackEventHandlerUsing the command names of the DataControlCommands class enables all the ASP.NET data-bound controls and their respective designer classes to use the same string resources for common commands, such as "Edit" or "Update", and to correctly handle events that are posted by an IPostBackEventHandler instance. 下列類別使用 DataControlCommandsThe following classes use DataControlCommands:

欄位

CancelCommandName

表示字串 "Cancel"。Represents the string "Cancel".

DeleteCommandName

表示字串 "Delete"。Represents the string "Delete".

EditCommandName

表示字串 "Edit"。Represents the string "Edit".

FirstPageCommandArgument

表示字串 "First"。Represents the string "First".

InsertCommandName

表示字串 "Insert"。Represents the string "Insert".

LastPageCommandArgument

表示字串 "Last"。Represents the string "Last".

NewCommandName

表示字串 "New"。Represents the string "New".

NextPageCommandArgument

表示字串 "Next"。Represents the string "Next".

PageCommandName

表示字串 "Page"。Represents the string "Page".

PreviousPageCommandArgument

表示字串 "Prev"。Represents the string "Prev".

SelectCommandName

表示字串 "Select"。Represents the string "Select".

SortCommandName

表示字串 "Sort"。Represents the string "Sort".

UpdateCommandName

表示字串 "Update"。Represents the string "Update".

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱