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 | |
---|---|---|
Publish(ActivityDescription) | Publshes a new workflow activity to the current scope or updates an existing workflow activity. |
|
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. |
|
Publish(IEnumerable<ActivityDescription>) | Publshes or updates a collection of workflow activities. |
|
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
description
Type: Microsoft.Workflow.Client.ActivityDescriptionThe description of the activity being published or updated
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
description
Type: Microsoft.Workflow.Client.ActivityDescriptionThe description of the activity being published or updated
overwriteXClassName
Type: System.BooleanTrue if x:ClassName attribute in xaml should be overwritten by the Name property specified in ActivityDescription. False if otherwise.
terminateDependentInstances
Type: System.BooleanTrue 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
descriptions
Type: System.Collections.Generic.IEnumerable<ActivityDescription>The collection of descriptions of the activities being published or updated
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
descriptions
Type: System.Collections.Generic.IEnumerable<ActivityDescription>The collection of descriptions of the activities being published or updated
terminateDependentInstances
Type: System.BooleanTrue 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