SPWebPartManager.SaveControlState Method

Saves state data for the SPWebPartManager so the data can be restored on future requests of the page.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Protected Overrides Function SaveControlState As Object
'Usage
Dim returnValue As Object

returnValue = Me.SaveControlState()
protected override Object SaveControlState()

Return Value

Type: System.Object
An object that contains the saved state data.

Remarks

This method is overridden to prevent the WebPartManager control from saving control state.

See Also

Reference

SPWebPartManager Class

SPWebPartManager Members

Microsoft.SharePoint.WebPartPages Namespace