ViewStateService.StoreViewState Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

When implemented in a derived class, stores the item represented by the specified key in the view state associated with the specified model item.

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

Syntax

'Declaration
Public Overridable Sub StoreViewState ( _
    modelItem As ModelItem, _
    key As String, _
    value As Object _
)
'Usage
Dim instance As ViewStateService
Dim modelItem As ModelItem
Dim key As String
Dim value As Object

instance.StoreViewState(modelItem, key, _
    value)
public virtual void StoreViewState(
    ModelItem modelItem,
    string key,
    Object value
)
public:
virtual void StoreViewState(
    ModelItem^ modelItem, 
    String^ key, 
    Object^ value
)
public function StoreViewState(
    modelItem : ModelItem, 
    key : String, 
    value : Object
)
abstract StoreViewState : 
        modelItem:ModelItem * 
        key:string * 
        value:Object -> unit 
override StoreViewState : 
        modelItem:ModelItem * 
        key:string * 
        value:Object -> unit 

Parameters

Remarks

You can retrieve the stored object by calling RetrieveViewState(ModelItem, String) and passing the same values for modelItem and key.

.NET Framework Security

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 4

See Also

Reference

ViewStateService Class

ViewStateService Members

System.Activities.Design.View Namespace