WebPartManager.WebPartsConnecting Evento
Definição
Ocorre durante o processo de criação de uma conexão entre controles WebPart (ou controles de servidor ou de usuário, colocados em uma zona WebPartZoneBase).Occurs during the process of creating a connection between WebPart controls (or server or user controls placed in a WebPartZoneBase zone).
public:
event System::Web::UI::WebControls::WebParts::WebPartConnectionsCancelEventHandler ^ WebPartsConnecting;
public event System.Web.UI.WebControls.WebParts.WebPartConnectionsCancelEventHandler WebPartsConnecting;
member this.WebPartsConnecting : System.Web.UI.WebControls.WebParts.WebPartConnectionsCancelEventHandler
Public Custom Event WebPartsConnecting As WebPartConnectionsCancelEventHandler
Tipo de evento
Comentários
O WebPartsConnecting evento é gerado pelo OnWebPartsConnecting método e sinaliza que o processo de conexão foi iniciado (por exemplo, um usuário selecionou um controle e clicou em um verbo conectar), mas ainda não foi concluído.The WebPartsConnecting event is raised by the OnWebPartsConnecting method, and it signals that the connection process has begun (for example, a user has selected a control and clicked a connect verb), but is not yet completed. O evento fornece uma oportunidade para cancelar uma conexão antes que ela seja concluída.The event provides an opportunity to cancel a connection before it is complete. Se a conexão for concluída com êxito, esse evento será seguido pelo WebPartsConnected evento.If the connection is successfully completed, this event is followed by the WebPartsConnected event.
Os desenvolvedores de páginas podem adicionar um manipulador personalizado para o evento adicionando o OnWebPartsConnecting atributo ao <asp:webpartmanager> elemento e atribuindo um nome de método personalizado ao atributo.Page developers can add a custom handler for the event by adding the OnWebPartsConnecting attribute to the <asp:webpartmanager> element, and assigning a custom method name to the attribute.