SPScenarioContext.PersistDataToSessionState method
Persists the name/value pair to the session state for this scenario context.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub PersistDataToSessionState ( _
key As String, _
value As Object _
)
'Usage
Dim instance As SPScenarioContext
Dim key As String
Dim value As Object
instance.PersistDataToSessionState(key, _
value)
public void PersistDataToSessionState(
string key,
Object value
)
Parameters
key
Type: System.StringKey of the data to persist.
value
Type: System.ObjectThe actual object to persist.
Exceptions
Exception | Condition |
---|---|
[ArgumentNullException] | Thrown when key is empty or a null reference (Nothing in Visual Basic). |