System.Web.UI.IStateFormatter.Serialize Method

Serializes ASP.NET Web server control state to string form.

Syntax

public string Serialize (object state)

Parameters

state
The object that represents the view state of the Web server control to serialize to string form.

Returns

A string that represents a Web server control's view state.

Remarks

Use the IStateFormatter.Serialize(object) method to transform an object state graph to string form. Reconstitute a state object from the string using the IStateFormatter.Deserialize(string) method.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0