IPostBackContainer.GetPostBackOptions(IButtonControl) Methode

Definition

Gibt die optionen zurück, die für ein Postbackskript für ein angegebenes Schaltflächensteuerelement erforderlich sind.

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

Parameter

buttonControl
IButtonControl

Das Steuerelement, das das Postbackereignis generiert.

Gibt zurück

Ein PostBackOptions Objekt, das die zum Generieren eines Postbackskripts erforderlichen Optionen enthält buttonControl.

Hinweise

Implementierungen der GetPostBackOptions Methode sollten eine neue PostBackOptions Instanz mit den für die GetPostBackEventReference Methode erforderlichen Informationen konfigurieren, um einen gültigen Postbackereignisverweis zu erstellen, der, wenn er auf dem Client ausgeführt wird, einen Postback initiiert.

Gilt für:

Weitere Informationen