DetailsView.IPostBackContainer.GetPostBackOptions(IButtonControl) 方法

定义

有关此成员的说明,请参见 GetPostBackOptions(IButtonControl)For a description of this member, see GetPostBackOptions(IButtonControl).

 virtual System::Web::UI::PostBackOptions ^ System.Web.UI.WebControls.IPostBackContainer.GetPostBackOptions(System::Web::UI::WebControls::IButtonControl ^ buttonControl) = System::Web::UI::WebControls::IPostBackContainer::GetPostBackOptions;
System.Web.UI.PostBackOptions IPostBackContainer.GetPostBackOptions (System.Web.UI.WebControls.IButtonControl buttonControl);
Function GetPostBackOptions (buttonControl As IButtonControl) As PostBackOptions Implements IPostBackContainer.GetPostBackOptions

参数

buttonControl
IButtonControl

生成客户端回发事件的控件。The control generating the client-side postback event.

返回

一个 PostBackOptions,它包含 GetPostBackEventReference 构造有效脚本(在客户端上执行时将启动客户端回发)时所需的信息。A PostBackOptions with the information required for GetPostBackEventReference to construct a valid script that, when executed on the client, initiates a client postback.

实现

异常

buttonControlnullbuttonControl is null.

buttonControl 导致在 DetailsView 控件中进行验证,尝试使用相同的 DetailsView 控件作为回发目标。buttonControl causes validation in the DetailsView control and attempts to use the same DetailsView control as a postback target.

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在DetailsView实例被强制转换IPostBackEventHandler为接口时使用。It can be used only when the DetailsView instance is cast to the IPostBackEventHandler interface.

适用于

另请参阅