CheckBoxList.IPostBackDataHandler.LoadPostData(String, NameValueCollection) 方法

定義

處理 CheckBoxList 控制項的張貼資料。Processes posted data for the CheckBoxList control.

 virtual bool System.Web.UI.IPostBackDataHandler.LoadPostData(System::String ^ postDataKey, System::Collections::Specialized::NameValueCollection ^ postCollection) = System::Web::UI::IPostBackDataHandler::LoadPostData;
bool IPostBackDataHandler.LoadPostData (string postDataKey, System.Collections.Specialized.NameValueCollection postCollection);
abstract member System.Web.UI.IPostBackDataHandler.LoadPostData : string * System.Collections.Specialized.NameValueCollection -> bool
override this.System.Web.UI.IPostBackDataHandler.LoadPostData : string * System.Collections.Specialized.NameValueCollection -> bool
Function LoadPostData (postDataKey As String, postCollection As NameValueCollection) As Boolean Implements IPostBackDataHandler.LoadPostData

參數

postDataKey
String

控制項的索引鍵識別項,用來為 postCollection 製作索引。The key identifier for the control, used to index the postCollection.

postCollection
NameValueCollection

NameValueCollection 物件,包含使用控制識別項進行索引的值資訊。A NameValueCollection object that contains value information indexed by control identifiers.

傳回

Boolean

如果伺服器控制項的狀態因回傳而變更,則為 true,否則為 falsetrue if the server control's state changes as a result of the postback; otherwise, false.

實作

備註

一般來說,您應該使用 LoadPostData 方法來處理物件的張貼資料 CheckBoxListTypically, you should use the LoadPostData method to process posted data for a CheckBoxList object.

IPostBackDataHandler.LoadPostData方法是明確的介面成員執行。The IPostBackDataHandler.LoadPostData method is an explicit interface member implementation. 只有在 CheckBoxList 執行個體轉換成 IPostBackDataHandler 介面時,才能使用這個成員。It can be used only when the CheckBoxList instance is cast to an IPostBackDataHandler interface.

給繼承者的注意事項

若要定義自訂執行以處理物件的張貼資料 CheckBoxList ,請覆寫 LoadPostData(String, NameValueCollection) 成員。To define a custom implementation for processing posted data for a CheckBoxList object, override the LoadPostData(String, NameValueCollection) member. 明確介面的實作為呼叫 LoadPostData(String, NameValueCollection) 方法來處理控制項的張貼資料。The explicit interface implementation calls the LoadPostData(String, NameValueCollection) method to process the posted data for the control.

適用於

另請參閱