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 部件控件集在内部使用。

适用于

另请参阅