SqlDataSource.SortParameterName 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置存储过程参数的名称,在使用存储过程执行数据检索时,该存储过程参数用于对检索到的数据进行排序。
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
属性值
在使用存储过程执行数据检索时用于排序检索数据的存储过程参数的名称。
注解
SortParameterName仅当 属性包含SelectCommand的 SQL 命令是存储过程的名称时,才会计算 属性。 在这种情况下,如果 SortParameterName 设置了 属性,则它包含用于对存储过程的结果进行排序的参数的名称。
如果设置了 属性 ParameterPrefix ,则会将其追加到 SortParameterName 属性前面。
适用于
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈