Redigeeri

Jagamisviis:


ViewStateService.StoreViewState(ModelItem, String, Object) Method

Definition

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

public:
 abstract void StoreViewState(System::Activities::Presentation::Model::ModelItem ^ modelItem, System::String ^ key, System::Object ^ value);
public abstract void StoreViewState (System.Activities.Presentation.Model.ModelItem modelItem, string key, object value);
abstract member StoreViewState : System.Activities.Presentation.Model.ModelItem * string * obj -> unit
Public MustOverride Sub StoreViewState (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.

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