Extensions Property
Collapse the table of content
Expand the table of content

WorkflowInvoker.Extensions Property

.NET Framework (current version)
 

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:
© 2016 Microsoft