CallExternalMethodActivity.CorrelationToken Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the CorrelationToken for the external method.
public:
virtual property System::Workflow::Runtime::CorrelationToken ^ CorrelationToken { System::Workflow::Runtime::CorrelationToken ^ get(); void set(System::Workflow::Runtime::CorrelationToken ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Workflow.Activities.CorrelationTokenTypeConverter))]
public virtual System.Workflow.Runtime.CorrelationToken CorrelationToken { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.Activities.CorrelationTokenTypeConverter))>]
member this.CorrelationToken : System.Workflow.Runtime.CorrelationToken with get, set
Public Overridable Property CorrelationToken As CorrelationToken
Property Value
The correlation token for the external method.
- Attributes
Examples
The following sample shows how to access the CorrelationToken
property of a CallExternalMethodActivity
object. This sample is from the Correlated Local Service SDK sample, from the CorrelatedLocalServiceWorkflow.designer.cs file. For more information, see Correlated Local Service Sample.
this.createTask2.CorrelationToken = correlationtoken1;
Me.createTask2.CorrelationToken = correlationtoken1
Remarks
This property defines which specific CallExternalMethodActivity activity a given external method call comes from. This value can then be used in the payload of a local communication service event to direct that event to the correct HandleExternalEventActivity activity.
For an example of correlation, see the Correlated Local Service Sample.