WebPartManager.OnWebPartsDisconnecting(WebPartConnectionsCancelEventArgs) Metodo

Definizione

Genera l'evento WebPartsDisconnecting, che indica il processo di chiusura di una connessione tra due controlli WebPart o controlli server o utente presenti in un'area WebPartZoneBase.Raises the WebPartsDisconnecting event, which indicates that two WebPart or server or user controls in a WebPartZoneBase zone are in the process of ending a connection.

protected:
 virtual void OnWebPartsDisconnecting(System::Web::UI::WebControls::WebParts::WebPartConnectionsCancelEventArgs ^ e);
protected virtual void OnWebPartsDisconnecting (System.Web.UI.WebControls.WebParts.WebPartConnectionsCancelEventArgs e);
abstract member OnWebPartsDisconnecting : System.Web.UI.WebControls.WebParts.WebPartConnectionsCancelEventArgs -> unit
override this.OnWebPartsDisconnecting : System.Web.UI.WebControls.WebParts.WebPartConnectionsCancelEventArgs -> unit
Protected Overridable Sub OnWebPartsDisconnecting (e As WebPartConnectionsCancelEventArgs)

Parametri

e
WebPartConnectionsCancelEventArgs

Oggetto WebPartConnectionsCancelEventArgs che contiene i dati dell'evento.A WebPartConnectionsCancelEventArgs that contains the event data.

Commenti

Il OnWebPartsDisconnecting metodo genera l' WebPartsDisconnecting evento, che si verifica quando due controlli terminano una connessione.The OnWebPartsDisconnecting method raises the WebPartsDisconnecting event, which occurs when two controls are ending a connection. Il metodo offre la possibilità di annullare il processo di disconnessione.The method provides the opportunity to cancel the disconnection process. Se la connessione viene rimossa correttamente, WebPartsDisconnected viene indicato l'evento.If the connection is successfully removed, the WebPartsDisconnected event follows.

Gli sviluppatori di pagine possono fornire un gestore personalizzato per l'evento associato aggiungendo OnWebPartsDisconnecting l'attributo <asp:webpartmanager> all'elemento in una pagina Web e quindi assegnando un nome di metodo personalizzato all'attributo.Page developers can provide a custom handler for the associated event by adding the OnWebPartsDisconnecting attribute to the <asp:webpartmanager> element on a Web page, and then assigning a custom method name to the attribute.

Note per gli eredi

Gli sviluppatori che creano WebPartManager classi derivate OnWebPartsDisconnecting(WebPartConnectionsCancelEventArgs) possono eseguire l'override del metodo per personalizzare la gestione degli eventi.Developers who create derived WebPartManager classes can override the OnWebPartsDisconnecting(WebPartConnectionsCancelEventArgs) method to customize the event handling.

Si applica a

Vedi anche