July 26, 2012
Gets the dictionary used for passing an application’s state between invocations.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Windows Phone applications are deactivated when the user navigates to another application. When the user returns to the application, by using the Back button or by completing a Launcher or Chooser task, the application is reactivated. An application can store transient application state in the dictionary in the handler for the Deactivated event. In the Activated event handler, an application can use the values stored in the State dictionary to transient application state. For more information about handling deactivation and reactivation, see Execution Model for Windows Phone.
This method may throw one of the following exceptions.
Values placed in the State dictionary must be serializable. This exception is only thrown while debugging. At run time, this exception is silently ignored.