ViewStateService.StoreViewStateWithUndo(ModelItem, String, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.
Remarks
You can retrieve the stored object by calling RetrieveViewState and passing the same values for modelItem
and key
.