WorkflowInvoker.Extensions Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the Collection<T> of extensions that are available to workflows invoked by a WorkflowInvoker instance.

Namespace:   System.Activities
Assembly:  System.Activities (in System.Activities.dll)

public WorkflowInstanceExtensionManager Extensions { get; }

Property Value

Type: System.Activities.Hosting.WorkflowInstanceExtensionManager

The Collection<T> of extensions that are available to workflows invoked by a WorkflowInvoker instance.

This property is used by workflow host authors to add extensions to the WorkflowInvoker instance so they will be available to workflows invoked by it.

The following example registers a custom TrackingParticipant with the Extensions collection of a WorkflowInvoker instance. This code example is part of the Custom Tracking sample.

WorkflowInvoker invoker = new WorkflowInvoker(BuildSampleWorkflow());
invoker.Extensions.Add(customTrackingParticipant);

invoker.Invoke();

.NET Framework
Available since 4.0
Return to top
Show: