ViewStateService.StoreViewState Method (ModelItem, String, Object)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Activities.Presentation.View
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

public abstract void StoreViewState(
	ModelItem modelItem,
	string key,
	object value
)

Parameters

modelItem
Type: System.Activities.Presentation.Model.ModelItem

The ModelItem that the view state applies to.

key
Type: System.String

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

value
Type: System.Object

An Object to be stored.

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

.NET Framework
Available since 4.0
Return to top
Show: