Επεξεργασία

Κοινή χρήση μέσω


ViewStateService Class

Definition

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.

public ref class ViewStateService abstract
public abstract class ViewStateService
type ViewStateService = class
Public MustInherit Class ViewStateService
Inheritance
ViewStateService
Derived

Remarks

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.

Constructors

ViewStateService()

Initiates a new instance of the ViewStateService class.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(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(ModelItem, String)

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

RetrieveAllViewState(ModelItem)

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

RetrieveViewState(ModelItem, String)

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

StoreViewState(ModelItem, String, Object)

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

StoreViewStateWithUndo(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.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Events

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.

Applies to