ChartWebPartDataStorage.Save Method (ChartWebPart, String)

Saves the specified ChartWebPart object into the custom session state as the serialized data stream.

Namespace:  Microsoft.Office.Server.WebControls
Assembly:  Microsoft.Office.Server.Chart (in Microsoft.Office.Server.Chart.dll)


Public Shared Function Save ( _
    chartWebPart As ChartWebPart, _
    userIdentity As String _
) As String
Dim chartWebPart As ChartWebPart
Dim userIdentity As String
Dim returnValue As String

returnValue = ChartWebPartDataStorage.Save(chartWebPart, _
public static string Save(
    ChartWebPart chartWebPart,
    string userIdentity


Return Value

Type: System.String
The String object that represents the session key used to retrieve the serialized Chart Web Part from the custom session state.


This method saves the specified ChartWebPart object and user ID into the custom session state, and then returns the session key, which will be used with the user ID to retrieve the stored data.

See Also


ChartWebPartDataStorage Class

ChartWebPartDataStorage Members

Save Overload

Microsoft.Office.Server.WebControls Namespace