ChartWebPartDataStorage.Save Method (Chart, String)

Saves the specified Chart 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 ( _
    chart As Chart, _
    userIdentity As String _
) As String
'Usage
Dim chart As Chart
Dim userIdentity As String
Dim returnValue As String

returnValue = ChartWebPartDataStorage.Save(chart, userIdentity)
public static string Save(
    Chart chart,
    string userIdentity
)

Parameters

Return Value

Type: System.String
The String object that represents the session key used to retrieve the serialized chart image from the custom session state.

Remarks

This method saves the specified Chart 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