Partilhar via


WorkflowContext Members

Include Protected Members
Include Inherited Members

Provides detailed information about a specified workflow instance.

The WorkflowContext type exposes the following members.

Constructors

  Name Description
Public method WorkflowContext Initializes a new instance of the WorkflowContext class.

Top

Properties

  Name Description
Public property AllowDefaultContentApproval Gets a value that indicates whether the workflow can be started automatically when the user approves the publishing of a major version of a list item.
Public property AllowManual Gets a value that indicates whether the workflow can be started manually.
Public property AssociationTitle Gets the name of the workflow association associated with the workflow context.
Public property AssociatorUser Gets the author of the workflow association associated with the workflow context.
Public property AutoStartChange Gets a value that indicates whether the workflow is started when an item is changed.
Public property AutoStartCreate Gets a value that indicates whether the workflow is started when an item is created.
Public property CurrentItemUrl Gets the absolute URL of the list item on which the workflow was created.
Public property CurrentWebUrl Gets the URL of the SharePoint 2010 website on which the workflow instance is located.
Public property InitiatorUser Gets the originator of the current workflow instance.
Public property ItemId Gets the identifier of the list item on which the workflow instance is running.
Public property ItemName Gets the name of the list item on which the workflow instance was created.
Public property LastRunDateTime Gets the Coordinated Universal Time (UTC) date and time of the last modification to the workflow instance.
Public property ListId Gets the identifier of the list that contains the list item on which the workflow instance is running.
Public property PermissionsManual Gets a value that indicates whether the current user has the permissions to manually start the workflow on the website.
Public property Site The SPSite object that is associated with a specified workflow.
Public property StartedDateTime Gets the UTC date and time when the workflow instance was created.
Public property TaskListGuid Gets the globally unique identifier (GUID) of the task list associated with the workflow context.
Public property Web The SPWeb that is associated with a specified workflow.
Public property WorkflowInstanceId Gets the globally unique identifier (GUID) of the current workflow instance.
Public property WorkflowStatusUrl Gets the absolute URL of the status page for the workflow instance.
Public property WorkflowWebProvider Gets or sets an object that provides access to the website and user role for the workflow instance.

Top

Methods

  Name Description
Public method CacheFieldValue Field value that is written to the cache before it is committed to the database.
Public method CacheNoLongerMatches Used to determine if a cached value is still valid and whether it has been updated in the database.
Public method CacheUnsavedListItem Caches an unsaved list item before it is committed to the database.
Public method Dispose Disposes of the Windows SharePoint Services 3.0 objects that were created by the workflow.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetListItem(SPList, SPItemKey) Retrieves the cached version of a specified SPListItem with a key.
Public method GetListItem(SPList, Int32) Retrieves the cached version of a specified SPListItem with the specified parameters.
Public method GetMatchFromCache Iterates through expired cache values and returns the first match found.
Public method GetType (Inherited from Object.)
Public method Initialize(SPWorkflowActivationProperties) Initializes the workflow context based on specified activation properties.
Public method Initialize(SPWorkflowActivationProperties, IWorkflowWebProvider) Initializes the workflow context based on a specified web hosting provider and activation properties.
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

See Also

Reference

WorkflowContext Class

Microsoft.SharePoint.WorkflowActions Namespace