Export (0) Print
Expand All

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.Object
  System.Activities.Presentation.View.ViewStateService
    System.Activities.Presentation.View.WorkflowViewStateService

Namespace:  System.Activities.Presentation.View
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

public abstract class ViewStateService

The ViewStateService type exposes the following members.

  NameDescription
Protected methodViewStateServiceInitiates a new instance of the ViewStateService class.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemoveViewStateWhen implemented in a derived class, removes the view state represented by the specified key and associated with the specified model item.
Public methodRetrieveAllViewStateReturns an aspect of the view state that was stored for the specified modelItem, matching the specified key.
Public methodRetrieveViewStateRetrieves an aspect of the view state for the specified modelItem, matching the specified key.
Public methodStoreViewStateStores an aspect of the view state for the specified modelItem, matching the specified key.
Public methodStoreViewStateWithUndoWhen 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.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventUndoableViewStateChangedWhen implemented in a derived class, declares an event that signals that a change has been made to the control’s undoable view state.
Public eventViewStateChangedWhen implemented in a derived class, declares an event that signals that a change has been made to the control’s view state.
Top

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.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft