Exit-Activity method

The Exit-Activity method ends the current activity and returns control to the calling activity.

In rare cases, write your activity to call the Activity-End method (which ends the current activity and all calling activities too rather than Exit-Activity method).

Parameters

This method uses no parameters and returns no results.

Results

If no calling activity exists, the system starts the next activity in the activity list.