ViewStateService Class

ViewStateService Class

.NET Framework (current version)
 

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.

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

System.Object
  System.Activities.Presentation.View.ViewStateService
    System.Activities.Presentation.View.WorkflowViewStateService

public abstract class ViewStateService

NameDescription
System_CAPS_protmethodViewStateService()

Initiates a new instance of the ViewStateService class.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRemoveViewState(ModelItem, String)

When implemented in a derived class, removes the view state represented by the specified key and associated with the specified model item.

System_CAPS_pubmethodRetrieveAllViewState(ModelItem)

Returns an aspect of the view state that was stored for the specified modelItem, matching the specified key.

System_CAPS_pubmethodRetrieveViewState(ModelItem, String)

Retrieves an aspect of the view state for the specified modelItem, matching the specified key.

System_CAPS_pubmethodStoreViewState(ModelItem, String, Object)

Stores an aspect of the view state for the specified modelItem, matching the specified key.

System_CAPS_pubmethodStoreViewStateWithUndo(ModelItem, String, Object)

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.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubeventUndoableViewStateChanged

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

System_CAPS_pubeventViewStateChanged

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 is called, and retrieve them when RetrieveViewState is called.

.NET Framework
Available since 4.0

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

Return to top
Show:
© 2016 Microsoft