RadioButtonList.IPostBackDataHandler.LoadPostData 方法

定义

处理 RadioButtonList 控件的已发布数据。

 virtual bool System.Web.UI.IPostBackDataHandler.LoadPostData(System::String ^ postDataKey, System::Collections::Specialized::NameValueCollection ^ postCollection) = System::Web::UI::IPostBackDataHandler::LoadPostData;
bool IPostBackDataHandler.LoadPostData (string postDataKey, System.Collections.Specialized.NameValueCollection postCollection);
abstract member System.Web.UI.IPostBackDataHandler.LoadPostData : string * System.Collections.Specialized.NameValueCollection -> bool
override this.System.Web.UI.IPostBackDataHandler.LoadPostData : string * System.Collections.Specialized.NameValueCollection -> bool
Function LoadPostData (postDataKey As String, postCollection As NameValueCollection) As Boolean Implements IPostBackDataHandler.LoadPostData

参数

postDataKey
String

控件的键标识符,用于对 postCollection 进行索引。

postCollection
NameValueCollection

包含由控件标识符索引的值信息的 NameValueCollection

返回

Boolean

如果服务器控件的状态由于回发而发生更改,则为 true;否则为 false

实现

注解

通常,应使用 RadioButtonList.LoadPostData 该方法来处理控件的已发布数据 RadioButtonList

该方法 IPostBackDataHandler.LoadPostData 是显式接口成员实现。 它只能在 RadioButtonList 实例被强制转换为 IPostBackDataHandler 接口时使用。

继承者说明

若要为控件定义用于处理已发布数据的 RadioButtonList 自定义实现,请重写 LoadPostData(String, NameValueCollection) 该方法。 显式接口实现调用 LoadPostData(String, NameValueCollection) 该方法来处理控件的已发布数据。

适用于

另请参阅