使用英语阅读

通过


DropDownList.LoadPostData(String, NameValueCollection) 方法

定义

处理 DropDownList 控件的回发数据。

C#
protected virtual bool LoadPostData(string postDataKey, System.Collections.Specialized.NameValueCollection postCollection);

参数

postDataKey
String

已发布集合中引用要加载的内容的索引。

postCollection
NameValueCollection

发布到服务器的所有传入名称值的集合。

返回

如果回发事件导致 DropDownList 控件的状态发生更改,则为 true;否则为 false

注解

ASP.NET 页框架跟踪从此方法调用返回true的所有服务器控件,然后在控件上DropDownList调用 RaisePostDataChangedEvent 方法。

适用于

产品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1