CatalogZoneBase.LoadPostData(String, NameValueCollection) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
处理与目录中控件对应的 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 部件控件集在内部使用。