Share via


SPScenarioContext.ClearDataFromSessionState method

Clears all session state data for the current scenario context.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub ClearDataFromSessionState
'Usage
Dim instance As SPScenarioContext

instance.ClearDataFromSessionState()
public void ClearDataFromSessionState()

Exceptions

Exception Condition
InvalidOperationException

The ClearDataFromSessionState() method is invoked for a stateless administration scenario.

Remarks

The method is supported for stateful administration scenarios only.

See also

Reference

SPScenarioContext class

SPScenarioContext members

Microsoft.SharePoint.Administration namespace