SqlDataSourceView.OldValuesParameterFormatString 屬性

定義

取得或設定格式字串,套用至傳遞給 DeleteUpdate 方法之任何參數的名稱。

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

屬性值

String

字串,表示套用至傳遞給 DeleteUpdate 方法之任何 oldValues 參數名稱的格式字串。 預設值為「{0}」。

備註

格式 OldValuesParameterFormatString 字串只會套用至主鍵,例如由資料系結控制項的 屬性所識別 DataKeyNames ,或在將 屬性設定 CompareAllValues 為 值且將 的集合 oldValues 傳遞給對應資料方法的刪除和更新案例 ConflictDetection 中。 在此情況下,格式字串會套用至集合中的每個 oldValues 參數名稱。 如需詳細資訊,請參閱SqlDataSource.OldValuesParameterFormatString

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

適用於

另請參閱