WebPartEventHandler WebPartEventHandler WebPartEventHandler WebPartEventHandler Delegate

Definizione

Rappresenta il metodo da cui verrà gestito l'evento WebPartAdded, WebPartDeleted, WebPartClosed, WebPartMoved o SelectedWebPartChanged di un oggetto WebPartManager.Represents the method that will handle the WebPartAdded event, WebPartDeleted event, WebPartClosed event, WebPartMoved event, or SelectedWebPartChanged event of a WebPartManager object.

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

Parametri

sender
Object Object Object Object

Origine dell'evento.The source of the event.

e
WebPartEventArgs WebPartEventArgs WebPartEventArgs WebPartEventArgs

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

Ereditarietà
WebPartEventHandlerWebPartEventHandlerWebPartEventHandlerWebPartEventHandler

Commenti

WebPartEventHandler Il metodo specificato nel delegato verrà chiamato quando viene generato un evento WebPartAdded WebPartMoved , WebPartDeleted WebPartClosed un evento, un evento, un SelectedWebPartChanged evento o un evento.The method specified in the WebPartEventHandler delegate will be called when a WebPartAdded event, WebPartDeleted event, WebPartClosed event, WebPartMoved event, or SelectedWebPartChanged event is raised.

Gli sviluppatori di pagine possono fornire gestori personalizzati per gli eventi Web part aggiungendo OnWebPartAdded un attributo OnWebPartDeleted , OnWebPartClosed OnWebPartMoved un attributo, un attributo, OnSelectedWebPartChanged un attributo o <asp:webpartmanager> un attributo all'elemento in una pagina, e l'assegnazione di un nome di metodo personalizzato all'attributo.Page developers can provide custom handlers for Web Parts events by adding an OnWebPartAdded attribute, OnWebPartDeleted attribute, OnWebPartClosed attribute, OnWebPartMoved attribute, or OnSelectedWebPartChanged attribute to the <asp:webpartmanager> element in a page, and assigning a custom method name to the attribute. Un gestore personalizzato può essere assegnato anche a livello di codice.A custom handler can also be assigned programmatically. Per ulteriori informazioni su come sottoscrivere un evento, vedere procedura: Generare e utilizzare glieventi.For more information about how to subscribe to an event, see How to: Raise and Consume Events.

Metodi di estensione

GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate)

Ottiene un oggetto che rappresenta il metodo rappresentato dal delegato specificato.Gets an object that represents the method represented by the specified delegate.

Si applica a