Edit

Share via


WorkflowInvoker.Extensions Property

Definition

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

public:
 property System::Activities::Hosting::WorkflowInstanceExtensionManager ^ Extensions { System::Activities::Hosting::WorkflowInstanceExtensionManager ^ get(); };
public System.Activities.Hosting.WorkflowInstanceExtensionManager Extensions { get; }
member this.Extensions : System.Activities.Hosting.WorkflowInstanceExtensionManager
Public ReadOnly Property Extensions As WorkflowInstanceExtensionManager

Property Value

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

Examples

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();

Remarks

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.

Applies to