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
- chartWebPart
Type: Microsoft.Office.Server.WebControls.ChartWebPart
The ChartWebPart object that represents the specified Chart Web Part to be saved.
- userIdentity
Type: System.String
The String object that represents the user ID.
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.