ImageButton.LoadPostData(String, NameValueCollection) 方法

定义

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

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

包含发布信息的 NameValueCollection

返回

各种情况下均返回 false

注解

LoadPostData 控件派生自定义类 ImageButton 时, 成员主要由控件开发人员使用。

检查 ImageButton 是否发布了 x 和 y 值,这指示用户单击了图像。 然后,向 ImageButton 要在事件处理阶段引发事件的页面进行注册。

适用于

另请参阅