共用方式為


SelectionList.LoadPostData(String, NameValueCollection) 方法

定義

處理這個控制項的回傳資料。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

protected:
 bool LoadPostData(System::String ^ postDataKey, System::Collections::Specialized::NameValueCollection ^ postCollection);
protected bool LoadPostData (string postDataKey, System.Collections.Specialized.NameValueCollection postCollection);
member this.LoadPostData : string * System.Collections.Specialized.NameValueCollection -> bool
Protected Function LoadPostData (postDataKey As String, postCollection As NameValueCollection) As Boolean

參數

postDataKey
String

控制項的索引鍵識別項。

postCollection
NameValueCollection

所有收到具名值的集合。

傳回

如果因為回傳而改變了 SelectionList 狀態,則為 true,否則為 false

例外狀況

在由 Adapter 參考的物件上對 LoadPostData(String, NameValueCollection, Object, Boolean) 進行呼叫會傳回 false

備註

方法LoadPostDataLoadPostData使用 屬性所參考Adapter之 物件上的 IControlAdapter 方法,從用戶端瀏覽器所傳送的張貼數據載入控制件。 如果此控制件上沒有載入回傳資料的裝置特定處理,則 IControlAdapter.LoadPostData 方法會傳 true回 。

適用於

另請參閱