Partager via


ToolPane.ErrorOccurredEventHandler Delegate

Represents the method that handles the ErrorOccurred event of the ToolPane class.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Delegate Sub ErrorOccurredEventHandler ( _
    sender As Object, _
    e As ToolPane.ErrorEventArgs _
)

Dim instance As New ErrorOccurredEventHandler(AddressOf HandlerMethod)
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public delegate void ErrorOccurredEventHandler(
    Object sender,
    ToolPane.ErrorEventArgs e
)

Parameters

Remarks

When you create an ErrorOccurredEventHandler delegate, you identify the method that handles the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.

See Also

Reference

Microsoft.SharePoint.WebPartPages Namespace