Share via


SPWorkflowUserContext enumeration

Specifies the user role that the workflow host should use for interactions with the current Web site (SPWeb).

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

Syntax

'Declaration
<NoNameChangeOnRemoteAuthoringAttribute> _
Public Enumeration SPWorkflowUserContext
'Usage
Dim instance As SPWorkflowUserContext
[NoNameChangeOnRemoteAuthoringAttribute]
public enum SPWorkflowUserContext

Members

Member name Description
Default For a declarative workflow, indicates to use the Initiator value for the user of the Web site. For a non-declarative workflow, indicates to use the system account for the user of the Web site. The system account is specified in the SystemAccount property.
Initiator Specifies that the user of the Web site should be the user who started the workflow.
Owner Specifies that the user of the Web site should be the user who owns the workflow.
Max Do not use. Specifying this value will result in an exception.

See also

Reference

Microsoft.SharePoint.Workflow namespace