ViewStateService.StoreViewStateWithUndo(ModelItem, String, Object) Method

Definition

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.

public:
 abstract void StoreViewStateWithUndo(System::Activities::Presentation::Model::ModelItem ^ modelItem, System::String ^ key, System::Object ^ value);
public abstract void StoreViewStateWithUndo (System.Activities.Presentation.Model.ModelItem modelItem, string key, object value);
abstract member StoreViewStateWithUndo : System.Activities.Presentation.Model.ModelItem * string * obj -> unit
Public MustOverride Sub StoreViewStateWithUndo (modelItem As ModelItem, key As String, value As Object)

Parameters

modelItem
ModelItem

The ModelItem that the view state applies to.

key
String

The String that identifies the aspect of the view state that is to be stored. The String that identifies the view state item that is stored.

value
Object

An Object to be stored.

Remarks

You can retrieve the stored object by calling RetrieveViewState and passing the same values for modelItem and key.

Applies to