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
- modelItem
Type: System.Activities.Design.Model.ModelItem
The workflow activity ModelItem associated with the current view state.
- key
Type: System.String
The String that identifies the view state item that is stored.
- value
Type: System.Object
An Object to be stored.
Remarks
You can retrieve the stored object by calling RetrieveViewState(ModelItem, String) and passing the same values for modelItem and key.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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