Export (0) Print
Expand All
Expand Minimize

Using the StateInitializationActivity Activity 

The StateInitializationActivity activity is used in a StateActivity activity as a container for child activities that are executed when the state is transitioned to. A StateActivity activity can have at most one StateInitializationActivity activity. Unlike an EventDrivenActivity activity, which can also be a child of a StateActivity activity, the StateInitializationActivity activity does not have to respond to events. It is always run when entering a StateActivity activity.

For more information, see the StateInitializationActivity class in the System.Workflow.Activities namespace in the Windows Workflow Foundation Class Library reference.

For a code sample that demonstrates how to use the StateInitializationActivity activity, see Simple State Machine.

See Also

Footer image
Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft