WorkflowManagementClient.PublishNotification Method (WorkflowNotification, IDictionary<String, String>, Int64)

Publishes a notification to the current scope.

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

Syntax

'Declaration
Public Function PublishNotification ( _
    notification As WorkflowNotification, _
    activationMetadata As IDictionary(Of String, String), _
    expectedScopeRevision As Long _
) As PublishWorkflowNotificationResult
'Usage
Dim instance As WorkflowManagementClient 
Dim notification As WorkflowNotification 
Dim activationMetadata As IDictionary(Of String, String)
Dim expectedScopeRevision As Long 
Dim returnValue As PublishWorkflowNotificationResult 

returnValue = instance.PublishNotification(notification, _
    activationMetadata, expectedScopeRevision)
public PublishWorkflowNotificationResult PublishNotification(
    WorkflowNotification notification,
    IDictionary<string, string> activationMetadata,
    long expectedScopeRevision
)
public:
PublishWorkflowNotificationResult PublishNotification(
    WorkflowNotification^ notification, 
    IDictionary<String^, String^>^ activationMetadata, 
    long long expectedScopeRevision
)
member PublishNotification : 
        notification:WorkflowNotification * 
        activationMetadata:IDictionary<string, string> * 
        expectedScopeRevision:int64 -> PublishWorkflowNotificationResult
public function PublishNotification(
    notification : WorkflowNotification, 
    activationMetadata : IDictionary<String, String>, 
    expectedScopeRevision : long
) : PublishWorkflowNotificationResult

Parameters

  • expectedScopeRevision
    Type: System.Int64
    The expected scope revision.

Return Value

Type: Microsoft.Workflow.Client.PublishWorkflowNotificationResult
The notification result of the publish workflow.

Remarks

Depending on the settings of activation filters and subscriptions filters, a notification can activate an instance of 0 to N workflows and/or be delivered to 0 to N existing workflow instances.

See Also

Reference

WorkflowManagementClient Class

PublishNotification Overload

Microsoft.Workflow.Client Namespace