Export (0) Print
Expand All

WorkflowMessagingService.PublishEvent method

SharePoint 2013

Publishes an event to the workflow host.

Namespace:  Microsoft.SharePoint.WorkflowServices
Assembly:  Microsoft.SharePoint.WorkflowServicesBase (in Microsoft.SharePoint.WorkflowServicesBase.dll)

public abstract string PublishEvent(
	Guid eventSourceId,
	string eventName,
	IDictionary<string, Object> payload
)

Parameters

eventSourceId
Type: System.Guid

Guid that identifies the event source.

eventName
Type: System.String

Fully qualified name of the event.

payload
Type: System.Collections.Generic.IDictionary<String, Object>

IDictionary object containing event properties as name/value pairs.

Return value

Type: System.String
Returns the event to publish.

The eventSourceId should be set to the id of the scope from which the event is railed – that is, the list id for list events, the web id for web events, or the project id for project events.

The eventSourceId parameter must be unique within the scope of a site collection ([T:Microsoft.SharePoint.SPWeb)] instance).

Show:
© 2014 Microsoft