語言

CatalogZoneBase.LoadPostData(String, NameValueCollection) 方法

定義

當頁面上傳回伺服器時,處理對應目錄中控制項的勾選框 WebPart 狀態。

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

參數

postDataKey
String

控制的鍵識別碼。

postCollection
NameValueCollection

是一組上傳到伺服器的名稱/值對集合。

傳回

此方法與覆寫基底方法不同,總是回傳 false,因為類別不會暴露任何變更事件。

備註

此方法會遍歷控制項集合 CheckBox ,以判斷使用者選擇了目錄中哪些 WebPart 伺服器控制項。 所選項目會被分配到內部陣列,然後處理該陣列以將相應的控制項加入網頁。

這個方法並非設計用來從你的程式碼中呼叫;它在 Web Parts 控制集內部使用。

適用於

另請參閱