DropDownList.LoadPostData(String, NameValueCollection) 方法

定义

处理 DropDownList 控件的回发数据。Processes postback data for the DropDownList control.

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 index within the posted collection that references the content to load.

postCollection
NameValueCollection

发送到服务器的所有传入名称值的集合。The collection of all incoming name values posted to the server.

返回

如果回发事件导致 DropDownList 控件的状态发生更改,则为 true;否则为 falsetrue if the DropDownList control's state changes as a result of the postback event; otherwise, false.

实现

注解

ASP.NET 页框架跟踪从此方法调用返回true的所有服务器控件, 然后调用该DropDownList控件上的RaisePostDataChangedEvent方法。The ASP.NET page framework tracks all the server controls that return true from this method call, and then invokes the RaisePostDataChangedEvent method on the DropDownList control.

适用于