CorrelationTokenCollection.GetCorrelationToken Method
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 the specified CorrelationToken.
public:
static System::Workflow::Runtime::CorrelationToken ^ GetCorrelationToken(System::Workflow::ComponentModel::Activity ^ activity, System::String ^ correlationTokenName, System::String ^ ownerActivityName);
public static System.Workflow.Runtime.CorrelationToken GetCorrelationToken (System.Workflow.ComponentModel.Activity activity, string correlationTokenName, string ownerActivityName);
static member GetCorrelationToken : System.Workflow.ComponentModel.Activity * string * string -> System.Workflow.Runtime.CorrelationToken
Public Shared Function GetCorrelationToken (activity As Activity, correlationTokenName As String, ownerActivityName As String) As CorrelationToken
Parameters
- activity
- Activity
The Activity associated with the CorrelationTokenCollection.
- correlationTokenName
- String
The name of the CorrelationToken.
- ownerActivityName
- String
The name of the activity associated with the CorrelationTokenCollection.
Returns
The CorrelationToken with the specified correlationTokenName
.
Exceptions
activity
, correlationTokenName
, or ownerActivityName
are null references (Nothing
in Visual Basic).
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.