SqlDataSource.SortParameterName SqlDataSource.SortParameterName SqlDataSource.SortParameterName SqlDataSource.SortParameterName Property

定义

获取或设置存储过程参数的名称,在使用存储过程执行数据检索时,该存储过程参数用于对检索到的数据进行排序。Gets or sets the name of a stored procedure parameter that is used to sort retrieved data when data retrieval is performed using a stored procedure.

public:
 property System::String ^ SortParameterName { System::String ^ get(); void set(System::String ^ value); };
public string SortParameterName { get; set; }
member this.SortParameterName : string with get, set
Public Property SortParameterName As String

属性值

在使用存储过程执行数据检索时用于排序检索数据的存储过程参数的名称。The name of a stored procedure parameter used to sort retrieved data when data retrieval is performed using a stored procedure.

注解

SortParameterNameSelectCommand属性包含的 SQL 命令是存储过程的名称时, 才计算属性。The SortParameterName property is evaluated only when the SQL command that is contained by the SelectCommand property is the name of a stored procedure. 在这种情况下, SortParameterName如果设置了属性, 它将包含用于对存储过程的结果进行排序的参数的名称。In this case, if the SortParameterName property is set, it contains the name of a parameter that is used to sort the results of the stored procedure.

如果设置ParameterPrefix了属性, 则会将其预置SortParameterName到属性上。If the ParameterPrefix property is set, it is prepended to the SortParameterName property.

适用于

另请参阅