共用方式為


SPExceptionEventArgs Class

A [System.EventArgs] class for passing an exception thrown in an event publisher to an event subscriber.

Inheritance Hierarchy

System.Object
  System.EventArgs
    Microsoft.SharePoint.SPExceptionEventArgs

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Class SPExceptionEventArgs _
    Inherits EventArgs
'Usage
Dim instance As SPExceptionEventArgs
public class SPExceptionEventArgs : EventArgs

Remarks

If a class internally handles an exception but also exposes that exception to interested callers then it can implement a .NET event that is triggered when the exception occurs and callers can subscribe to that event. SPExceptionEventArgs can be passed to the event if the class exposes the exception to the caller.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPExceptionEventArgs Members

Microsoft.SharePoint Namespace