Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WorkflowPreferenceVariables Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Contains special variables that can be defined in a workflow to control the behavior of Windows PowerShell activities. Introduced in Windows PowerShell 3.0.

Namespace:   Microsoft.PowerShell.Activities
Assembly:  Microsoft.PowerShell.Workflow.ServiceCore (in Microsoft.PowerShell.Workflow.ServiceCore.dll)

System.Object
  Microsoft.PowerShell.Activities.WorkflowPreferenceVariables

Public NotInheritable Class WorkflowPreferenceVariables

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticPSParentActivityId

The identifier of the parent activity to be used for all progress records that are written in the enclosing scope. Introduced in Windows PowerShell 3.0.

System_CAPS_pubfieldSystem_CAPS_staticPSPersistPreference

The workflow variable that is used to determine if a Windows PowerShell activity should persist after completion. If this field is specified, all Windows PowerShell activities in that scope do not persist at the end of their execution. Introduced in Windows PowerShell 3.0.

System_CAPS_pubfieldSystem_CAPS_staticPSRunInProcessPreference

The workflow variable that controls whether activities are run in the process. If this field is specified, all activities in the enclosing scope are run in the process. Introduced in Windows PowerShell 3.0.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: