ViewStateService.RetrieveViewState(ModelItem, String) Method

Definition

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

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

Parameters

modelItem
ModelItem

The workflow activity ModelItem associated with the current view state.

key
String

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

Returns

The aspect of the view state as an Object,or null.

Remarks

Call StoreViewState to initially store view state information so that it can be retrieved.

Applies to