WebPartConnectionsCancelEventHandler Delegado

Definición

Representa el método que va a controlar el evento WebPartsConnecting o el evento WebPartsDisconnecting de un control WebPartManager.Represents the method that will handle the WebPartsConnecting event or WebPartsDisconnecting event of a WebPartManager control.

public delegate void WebPartConnectionsCancelEventHandler(System::Object ^ sender, WebPartConnectionsCancelEventArgs ^ e);
public delegate void WebPartConnectionsCancelEventHandler(object sender, WebPartConnectionsCancelEventArgs e);
type WebPartConnectionsCancelEventHandler = delegate of obj * WebPartConnectionsCancelEventArgs -> unit
Public Delegate Sub WebPartConnectionsCancelEventHandler(sender As Object, e As WebPartConnectionsCancelEventArgs)

Parámetros

sender
Object

Origen del evento.The source of the event.

e
WebPartConnectionsCancelEventArgs

Objeto WebPartConnectionsCancelEventArgs que contiene los datos del evento.A WebPartConnectionsCancelEventArgs that contains the event data.

Comentarios

El WebPartsConnecting método genera el evento OnWebPartsConnecting e indica que el proceso de conexión ha comenzado (por ejemplo, un usuario ha seleccionado un control y ha hecho clic en un verbo de conexión), pero aún no se ha completado.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. El evento proporciona una oportunidad para cancelar una conexión antes de que se complete.The event provides an opportunity to cancel a connection before it is complete. Si la conexión se ha completado correctamente, este evento va seguido del WebPartsConnected evento.If the connection is successfully completed, this event is followed by the WebPartsConnected event.

El WebPartsDisconnecting método genera el evento OnWebPartsDisconnecting y señala el hecho de que un usuario ha hecho clic en un verbo de desconexión o que, de lo contrario, se ha DisconnectWebParts llamado al método.The WebPartsDisconnecting event is raised by the OnWebPartsDisconnecting method, and it signals the fact that a user has clicked a disconnect verb, or the DisconnectWebParts method has otherwise been called. El evento proporciona una oportunidad para cancelar el proceso de finalización de una conexión antes de que se complete.The event provides an opportunity to cancel the process of ending a connection before it is complete. Si la conexión ha finalizado correctamente, este evento va seguido del WebPartsDisconnected evento.If the connection is ended successfully, this event is followed by the WebPartsDisconnected event.

Se llama al método especificado en el WebPartConnectionsCancelEventHandler delegado cuando WebPartsConnecting WebPartsDisconnecting se produce un evento o.The method specified in the WebPartConnectionsCancelEventHandler delegate is called when a WebPartsConnecting or WebPartsDisconnecting event is raised.

Los desarrolladores de páginas pueden agregar controladores personalizados para los eventos agregando OnWebPartsDisconnecting los OnWebPartsConnecting atributos y al <asp:webpartmanager> elemento y asignando nombres de método personalizados a los atributos.Page developers can add custom handlers for the events by adding the OnWebPartsDisconnecting and OnWebPartsConnecting attributes to the <asp:webpartmanager> element, and assigning custom method names to the attributes. También se puede asignar un controlador personalizado mediante programación.A custom handler can also be assigned programmatically. Para obtener más información sobre cómo suscribirse a un evento, vea Cómo: generar y consumir eventos.For more information about how to subscribe to an event, see How to: Raise and Consume Events.

Métodos de extensión

GetMethodInfo(Delegate)

Obtiene un objeto que representa el método representado por el delegado especificado.Gets an object that represents the method represented by the specified delegate.

Se aplica a