System.Web.UI.ObjectStateFormatter.Serialize Method

Serializes an object state graph to a base64-encoded string.

Syntax

public string Serialize (object stateGraph)

Parameters

stateGraph
The object to serialize.

Returns

A base-64 encoded string that represents the serialized object state of the stateGraph parameter.

Remarks

Any object graph that is serialized with the erload:System.Web.UI.ObjectStateFormatter.Serialize method can be deserialized with the erload:System.Web.UI.ObjectStateFormatter.Deserialize method. The ObjectStateFormatter.Serialize(object) method is used to serialize an object state graph to a base64-encoded string form.

Requirements

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