共用方式為


SPWorkflowEventReceiver Class

This is the base class for Workflow Event Receivers. This class is never instantiated.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.SPEventReceiverBase
    Microsoft.SharePoint.Workflow.SPWorkflowEventReceiver

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<SubsetCallableTypeAttribute> _
Public Class SPWorkflowEventReceiver _
    Inherits SPEventReceiverBase _
    Implements ISPWorkflowEventReceiver
'Usage
Dim instance As SPWorkflowEventReceiver
[SubsetCallableTypeAttribute]
public class SPWorkflowEventReceiver : SPEventReceiverBase, 
    ISPWorkflowEventReceiver

Remarks

A workflow event receiver class must derive from this class and override the methods for the event types it wants to handle.

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

SPWorkflowEventReceiver Members

Microsoft.SharePoint.Workflow Namespace