DataGridSortCommandEventArgs(Object, DataGridCommandEventArgs) 构造函数

定义

初始化 DataGridSortCommandEventArgs 类的新实例。Initializes a new instance of the DataGridSortCommandEventArgs class.

public:
 DataGridSortCommandEventArgs(System::Object ^ commandSource, System::Web::UI::WebControls::DataGridCommandEventArgs ^ dce);
public DataGridSortCommandEventArgs (object commandSource, System.Web.UI.WebControls.DataGridCommandEventArgs dce);
new System.Web.UI.WebControls.DataGridSortCommandEventArgs : obj * System.Web.UI.WebControls.DataGridCommandEventArgs -> System.Web.UI.WebControls.DataGridSortCommandEventArgs
Public Sub New (commandSource As Object, dce As DataGridCommandEventArgs)

参数

commandSource
Object

命令源。The source of the command.

dce
DataGridCommandEventArgs

包含事件数据的 DataGridCommandEventArgsA DataGridCommandEventArgs that contains the event data.

注解

使用此构造函数创建并初始化类的新实例 DataGridSortCommandEventArgsUse this constructor to create and initialize a new instance of the DataGridSortCommandEventArgs class.

DataGridSortCommandEventArgs 通过调用此构造函数创建的实例时,以下属性将初始化为指定值。When an instance of DataGridSortCommandEventArgs is created by a call to this constructor, the following properties are initialized to the specified values.

propertiesProperty 初始值Initial value
CommandSource commandSource 参数的值。The value of the commandSource parameter.
SortExpression dce.CommandArgument 参数的值。The value of the dce.CommandArgument parameter.

适用于