ViewStateService Class
Enables the preservation and accessing of all data values associated with the user interaction components of a workflow application, at a particular point in time in the running of a workflow application. A ViewStateService stores view states for model items.
System.Activities.Presentation.View::ViewStateService
System.Activities.Presentation.View::WorkflowViewStateService
Assembly: System.Activities.Presentation (in System.Activities.Presentation.dll)
The ViewStateService type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | 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.) |
![]() | RemoveViewState | When implemented in a derived class, removes the view state represented by the specified key and associated with the specified model item. |
![]() | RetrieveAllViewState | Returns an aspect of the view state that was stored for the specified modelItem, matching the specified key. |
![]() | RetrieveViewState | Retrieves an aspect of the view state for the specified modelItem, matching the specified key. |
![]() | StoreViewState | Stores an aspect of the view state for the specified modelItem, matching the specified key. |
![]() | StoreViewStateWithUndo | When implemented in a derived class, records the current setting of the item represented by the specified key so that it is available for an undo operation. The item represented by the specified key is then stored in the view state of the specified model item. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | UndoableViewStateChanged | When implemented in a derived class, declares an event that signals that a change has been made to the control’s undoable view state. |
![]() | ViewStateChanged | When implemented in a derived class, declares an event that signals that a change has been made to the control’s view state. |
This is useful so that the state can keep being retrieved when control of the application goes and comes with postbacks. ViewStateService is an abstract class. Derived classes must store view states when StoreViewState(ModelItem, String, Object) is called, and retrieve them when RetrieveViewState(ModelItem, String) is called.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
