CatalogZoneBase.LoadPostData(String, NameValueCollection) 方法

定义

当页回发到服务器时,处理目录中 WebPart 控件的对应复选框的状态。Processes the state of the check boxes that correspond to the WebPart controls in the catalog, when the page is posted back to the server.

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

控件的主要标识符。The key identifier for the control.

postCollection
NameValueCollection

发布到服务器的名称/值对的集合。The collection of name/value pairs posted to the server.

返回

Boolean

与重写基方法相比,此方法始终返回 false,因为该类不公开任何更改事件。This method, in contrast to the overridden base method, always returns false, because the class does not expose any change event.

注解

此方法循环访问控件的集合 CheckBox ,以确定 WebPart 用户选择了目录中的哪些或其他服务器控件。This method iterates through the collection of CheckBox controls to determine which WebPart or other server controls in the catalog have been selected by a user. 选定的项将分配给内部数组,然后将处理该数组,以将相应的控件添加到网页中。The selected items are assigned to an internal array, which is then processed to add the corresponding controls to the Web page.

方法不设计为从代码中调用;它由 Web 部件控件集内部使用。The method is not designed to be called from your code; it is used internally by the Web Parts control set.

适用于

另请参阅