Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

WorkflowInvoker.Extensions Property

.NET Framework 4.6 and 4.5

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

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft