SqlDataSourceView.SortParameterName 屬性

定義

取得或設定預存程序參數的名稱,用於在使用預存程序執行資料擷取時,對擷取的資料進行排序。

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 屬性。

屬性的值 SortParameterName 會儲存在檢視狀態中。

適用於

另請參閱