Share via


ActivityManager.Publish Method

 

Publshes a new workflow activity to the current scope or updates an existing workflow activity.

Namespace:   Microsoft.Workflow.Client
Assembly:  Microsoft.Workflow.Client (in Microsoft.Workflow.Client.dll)

Overload List

Name Description
System_CAPS_pubmethod Publish(ActivityDescription)

Publshes a new workflow activity to the current scope or updates an existing workflow activity.

System_CAPS_pubmethod Publish(ActivityDescription, Boolean, Boolean)

Publshes a new workflow activity to the current scope or updates an existing workflow activity and optionally terminates affected workflow instances and overwrites X:classname attribute in xaml.

System_CAPS_pubmethod Publish(IEnumerable<ActivityDescription>)

Publshes or updates a collection of workflow activities.

System_CAPS_pubmethod Publish(IEnumerable<ActivityDescription>, Boolean)

Publshes or updates a collection of workflow activities and optionally terminates affected workflow instances.

See Also

ActivityManager Class
Microsoft.Workflow.Client Namespace

Return to top

ActivityManager.Publish Method (ActivityDescription)

Publshes a new workflow activity to the current scope or updates an existing workflow activity.

Syntax

public Uri Publish(
    ActivityDescription description
)
public:
Uri^ Publish(
    ActivityDescription^ description
)
member Publish : 
        description:ActivityDescription -> Uri
Public Function Publish (
    description As ActivityDescription
) As Uri

Parameters

Return Value

Type: System.Uri

The Uri of the published / updated activity.

Return to top

ActivityManager.Publish Method (ActivityDescription, Boolean, Boolean)

Publshes a new workflow activity to the current scope or updates an existing workflow activity and optionally terminates affected workflow instances and overwrites X:classname attribute in xaml.

Syntax

public Uri Publish(
    ActivityDescription description,
    bool overwriteXClassName,
    bool terminateDependentInstances
)
public:
Uri^ Publish(
    ActivityDescription^ description,
    bool overwriteXClassName,
    bool terminateDependentInstances
)
member Publish : 
        description:ActivityDescription *
        overwriteXClassName:bool *
        terminateDependentInstances:bool -> Uri
Public Function Publish (
    description As ActivityDescription,
    overwriteXClassName As Boolean,
    terminateDependentInstances As Boolean
) As Uri

Parameters

  • overwriteXClassName
    Type: System.Boolean

    True if x:ClassName attribute in xaml should be overwritten by the Name property specified in ActivityDescription. False if otherwise.

  • terminateDependentInstances
    Type: System.Boolean

    True if all existing instances of any workflow that uses the activity being updated should be terminated; false if existing instances of the affected workflows should continue execution.

Return Value

Type: System.Uri

The Uri of the published / updated activity.

Return to top

ActivityManager.Publish Method (IEnumerable<ActivityDescription>)

Publshes or updates a collection of workflow activities.

Syntax

public Collection<Uri> Publish(
    IEnumerable<ActivityDescription> descriptions
)
public:
Collection<Uri^>^ Publish(
    IEnumerable<ActivityDescription^>^ descriptions
)
member Publish : 
        descriptions:IEnumerable<ActivityDescription> -> Collection<Uri>
Public Function Publish (
    descriptions As IEnumerable(Of ActivityDescription)
) As Collection(Of Uri)

Parameters

Return Value

Type: System.Collections.ObjectModel.Collection<Uri>

The collection of Uris of the published / updated activities.

Return to top

ActivityManager.Publish Method (IEnumerable<ActivityDescription>, Boolean)

Publshes or updates a collection of workflow activities and optionally terminates affected workflow instances.

Syntax

public Collection<Uri> Publish(
    IEnumerable<ActivityDescription> descriptions,
    bool terminateDependentInstances
)
public:
Collection<Uri^>^ Publish(
    IEnumerable<ActivityDescription^>^ descriptions,
    bool terminateDependentInstances
)
member Publish : 
        descriptions:IEnumerable<ActivityDescription> *
        terminateDependentInstances:bool -> Collection<Uri>
Public Function Publish (
    descriptions As IEnumerable(Of ActivityDescription),
    terminateDependentInstances As Boolean
) As Collection(Of Uri)

Parameters

  • terminateDependentInstances
    Type: System.Boolean

    True if all existing instances of any workflow that used an activity being updated should be terminated; False if existing instances of the affected workflows should continue execution.

Return Value

Type: System.Collections.ObjectModel.Collection<Uri>

The collection of Uris of the published / updated activities.

Return to top