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)

Syntax

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

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

Parameters

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.

Remarks

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

Reference

ChartWebPartDataStorage Class

ChartWebPartDataStorage Members

Save Overload

Microsoft.Office.Server.WebControls Namespace