Switch Members
Include Protected Members
Include Inherited Members
Include .NET Framework Members
Include .NET Compact Framework Members
Include XNA Framework Members
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Selects one choice from a number of activities to execute, based on the value of a given expression.
The Switch type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
Switch | Creates a new instance of the Switch class. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Abort | When implemented in a derived class, takes actions in response to the activity being aborted. (Inherited from NativeActivity.) |
![]() |
Cancel | When implemented in a derived class, runs logic to cause graceful early completion of the activity. (Inherited from NativeActivity.) |
![]() |
EnsureExtensions | Called by the workflow host to allow the workflow to update the extensions collection before execution. (Inherited from WorkflowElement.) |
![]() |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Execute | When implemented in a derived class, runs the activity’s execution logic. (Inherited from NativeActivity.) |
![]() |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
GetArguments | Returns a collection of RuntimeArgument objects for the WorkflowElement. (Inherited from WorkflowElement.) |
![]() |
GetChildren | Returns a collection of WorkflowElement objects that are direct children of the WorkflowElement. (Inherited from WorkflowElement.) |
![]() |
GetConstraints | Returns a collection of Constraint activities that are configured to provide validation for the WorkflowElement. (Inherited from WorkflowElement.) |
![]() |
GetDelegates | Returns a collection of ActivityDelegate objects for the WorkflowElement. (Inherited from WorkflowElement.) |
![]() |
GetEnvironmentVariables | Returns a collection of Variable objects that represents the variables defined at this activity’s scope. (Inherited from WorkflowElement.) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
OnGetArguments | Supplies a list of RuntimeArgument objects for the WorkflowElement. (Inherited from WorkflowElement.) |
![]() |
OnGetChildren | When implemented in a derived class, populates the list of child activities of this activity. (Inherited from NativeActivity.) |
![]() |
OnGetConstraints | When implemented in a derived class, populates a list of collection of Constraint activities that are configured to provide validation for the NativeActivity. (Inherited from NativeActivity.) |
![]() |
OnGetDelegates | When implemented in a derived class, populates a collection of delegates associated with the activity. (Inherited from NativeActivity.) |
![]() |
OnGetEnvironmentVariables | When implemented in a derived class, populates the list of environment variables associated with the activity. (Inherited from NativeActivity.) |
![]() |
OnGetPrivateChildren | When implemented in a derived class, populates the list of private child activities of this activity. (Inherited from NativeActivity.) |
![]() |
OnGetPrivateDelegates | When implemented in a derived class, populates the list of private delegates of this activity. (Inherited from NativeActivity.) |
![]() |
OnGetPrivateVariables | When implemented in a derived class, populates the list of private variables of this activity. (Inherited from NativeActivity.) |
![]() |
OnOpen | Called when the WorkflowElement is opened. (Inherited from WorkflowElement.) |
![]() |
ShouldSerializeDisplayName | Indicates whether the DisplayName property should be serialized. (Inherited from WorkflowElement.) |
![]() |
ThrowIfOpen | Throws an InvalidOperationException if the WorkflowElement has been prepared for execution. (Inherited from WorkflowElement.) |
![]() |
ToString | Returns a String that contains the Id and DisplayName of the WorkflowElement. (Inherited from WorkflowElement.) |
Top
Properties
Name | Description | |
---|---|---|
![]() |
Cases | The dictionary of potential execution paths. |
![]() |
Default | The activity that is executed if no keys of entries in the Cases collection match the Expression property. |
![]() |
DisplayName | Gets or sets an optional friendly name that is used for debugging, validation, exception handling, and tracking. (Inherited from WorkflowElement.) |
![]() |
Expression | The object to compare to the keys in the Cases collection. |
![]() |
Id | Gets an identifier that is unique in the scope of the workflow definition. (Inherited from WorkflowElement.) |
![]() |
IsOpen | Gets a value that indicates whether the WorkflowElement has been prepared for execution. (Inherited from WorkflowElement.) |
Top