IPostBackContainer.GetPostBackOptions(IButtonControl) 方法

定义

为指定的按钮控件返回回发脚本所需的选项。Returns the options required for a postback script for a specified button control.

public:
 System::Web::UI::PostBackOptions ^ GetPostBackOptions(System::Web::UI::WebControls::IButtonControl ^ buttonControl);
public System.Web.UI.PostBackOptions GetPostBackOptions (System.Web.UI.WebControls.IButtonControl buttonControl);
abstract member GetPostBackOptions : System.Web.UI.WebControls.IButtonControl -> System.Web.UI.PostBackOptions
Public Function GetPostBackOptions (buttonControl As IButtonControl) As PostBackOptions

参数

buttonControl
IButtonControl

生成回发事件的控件。The control generating the postback event.

返回

PostBackOptions 对象,包含生成 buttonControl 的回发脚本所需的选项。A PostBackOptions object containing the options required to generate a postback script for buttonControl.

注解

方法的实现应配置一个新PostBackOptions的实例, 其中包含GetPostBackEventReference方法构造有效的回发事件引用所需的信息, 当在客户端上执行时, 将启动回发。 GetPostBackOptionsImplementations of the GetPostBackOptions method should configure a new PostBackOptions instance with the information required for the GetPostBackEventReference method to construct a valid postback event reference, which, when executed on the client, initiates a postback.

适用于

另请参阅