IControlAdapter.LoadPostData(String, NameValueCollection, Object, Boolean) 方法

定义

如果适配器处理 post 数据的加载,则返回 trueReturns true if the adapter handles loading the post data. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 bool LoadPostData(System::String ^ postDataKey, System::Collections::Specialized::NameValueCollection ^ postCollection, System::Object ^ controlPrivateData, [Runtime::InteropServices::Out] bool % dataChanged);
public bool LoadPostData (string postDataKey, System.Collections.Specialized.NameValueCollection postCollection, object controlPrivateData, out bool dataChanged);
abstract member LoadPostData : string * System.Collections.Specialized.NameValueCollection * obj * bool -> bool
Public Function LoadPostData (postDataKey As String, postCollection As NameValueCollection, controlPrivateData As Object, ByRef dataChanged As Boolean) As Boolean

参数

postDataKey
String

标识控件。Identifies the control.

postCollection
NameValueCollection

包含所有传入名称值的集合。Contains the collection of all incoming name values.

controlPrivateData
Object

提供一个向控件发送私有数据的位置,加载发送数据时可能必须要用到该控件。Provides a place to send private data to the control that might be required for loading of post data. 该控件确定传递到参数的类型。The control determines the type that is passed to the parameter.

dataChanged
Boolean

如果 privateControlData 中所需的对象发生了更改,则返回 true,因此可能引发 RaisePostDataChangedEvent() 事件。Returns true if the required the object in privateControlData was changed, so the RaisePostDataChangedEvent() event can be raised.

返回

Boolean

如果适配器处理 post 数据的加载,则为 true;否则为 falsetrue if the adapter handles loading the post data; otherwise, false.

注解

当实现接口的控件 IPostBackDataHandler 具有其自己的方法时,将调用此方法 LoadPostDataThis method is called when a control that implements the IPostBackDataHandler interface has its own LoadPostData method invoked.

备注

不同的设备可能以不同的方式将其数据返回给调用服务器。Different devices might provide their data back to the calling server in different ways. 例如,WML 和 HTML 报告如何返回的结果之间的差异 SelectionListAn example is the difference between how WML and HTML report back the results of a SelectionList.

适用于

另请参阅