Partilhar via


SPWorkflowActivationProperties Class

Represents the initial properties of the workflow instance as it starts, such as the user who added the workflow, and the list and item to which the workflow was added.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties

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

Syntax

'Declaration
<SerializableAttribute> _
<SubsetCallableExcludeInterfaceAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType, ExcludeInterface := GetType(ISerializable))> _
<SubsetCallableTypeAttribute> _
Public Class SPWorkflowActivationProperties _
    Inherits SPAutoSerializingObject _
    Implements ISerializable, IDisposable
'Usage
Dim instance As SPWorkflowActivationProperties
[SerializableAttribute]
[SubsetCallableExcludeInterfaceAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType, ExcludeInterface = typeof(ISerializable))]
[SubsetCallableTypeAttribute]
public class SPWorkflowActivationProperties : SPAutoSerializingObject, 
    ISerializable, IDisposable

Remarks

When a new workflow instance is initiated, Microsoft SharePoint Server passes a SPWorkflowActivationProperties object to the OnWorkflowActivated workflow event activity. You can access this object through the WorkflowProperties property of that class.

For more information, see Workflow Initiation in SharePoint Foundation.

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

SPWorkflowActivationProperties Members

Microsoft.SharePoint.Workflow Namespace