DataControlCommands DataControlCommands DataControlCommands DataControlCommands Class

Definizione

La classe DataControlCommands contiene campi pubblici utilizzati da tutti i controlli con associazione a dati ASP.NET per promuovere un'interfaccia utente coerente.The DataControlCommands class contains public fields that all ASP.NET data-bound controls use, to promote a consistent user interface (UI). Questa classe non può essere ereditata.This class cannot be inherited.

public ref class DataControlCommands sealed
public sealed class DataControlCommands
type DataControlCommands = class
Public NotInheritable Class DataControlCommands
Ereditarietà
DataControlCommandsDataControlCommandsDataControlCommandsDataControlCommands

Commenti

La DataControlCommands classe contiene campi pubblici per i nomi dei comandi di controllo con associazione a dati.The DataControlCommands class contains public fields for data-bound control command names. Poiché il costruttore della classe è privato, non è possibile creare un'istanza della classe.The class constructor is private, so you cannot create an instance of the class. Tuttavia, poiché contiene const solo risorse di stringa, è possibile usare il costruttore della classe e i campi pubblici come qualsiasi altra static classe.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.

Usando i nomi dei comandi della DataControlCommands classe, tutti i controlli associati a dati ASP.NET e le rispettive classi della finestra di progettazione possono usare le stesse risorse di stringa per i comandi comuni, ad esempio "Edit" o "Update", e per gestire correttamente gli eventi inviati da istanza IPostBackEventHandler di.Using 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. Le classi seguenti usano DataControlCommands:The following classes use DataControlCommands:

Campi

CancelCommandName CancelCommandName CancelCommandName CancelCommandName

Rappresenta la stringa "Cancel".Represents the string "Cancel".

DeleteCommandName DeleteCommandName DeleteCommandName DeleteCommandName

Rappresenta la stringa "Delete".Represents the string "Delete".

EditCommandName EditCommandName EditCommandName EditCommandName

Rappresenta la stringa "Edit".Represents the string "Edit".

FirstPageCommandArgument FirstPageCommandArgument FirstPageCommandArgument FirstPageCommandArgument

Rappresenta la stringa "First".Represents the string "First".

InsertCommandName InsertCommandName InsertCommandName InsertCommandName

Rappresenta la stringa "Insert".Represents the string "Insert".

LastPageCommandArgument LastPageCommandArgument LastPageCommandArgument LastPageCommandArgument

Rappresenta la stringa "Last".Represents the string "Last".

NewCommandName NewCommandName NewCommandName NewCommandName

Rappresenta la stringa "New".Represents the string "New".

NextPageCommandArgument NextPageCommandArgument NextPageCommandArgument NextPageCommandArgument

Rappresenta la stringa "Next".Represents the string "Next".

PageCommandName PageCommandName PageCommandName PageCommandName

Rappresenta la stringa "Page".Represents the string "Page".

PreviousPageCommandArgument PreviousPageCommandArgument PreviousPageCommandArgument PreviousPageCommandArgument

Rappresenta la stringa "Prev".Represents the string "Prev".

SelectCommandName SelectCommandName SelectCommandName SelectCommandName

Rappresenta la stringa "Select".Represents the string "Select".

SortCommandName SortCommandName SortCommandName SortCommandName

Rappresenta la stringa "Sort".Represents the string "Sort".

UpdateCommandName UpdateCommandName UpdateCommandName UpdateCommandName

Rappresenta la stringa "Update".Represents the string "Update".

Metodi

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina se l'oggetto specificato è uguale all'oggetto corrente.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Funge da funzione hash predefinita.Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Ottiene l'oggetto Type dell'istanza corrente.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficiale dell'oggetto Object corrente.Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Restituisce una stringa che rappresenta l'oggetto corrente.Returns a string that represents the current object.

(Inherited from Object)

Si applica a

Vedi anche