Serializes the view state for a Web Forms page. This class cannot be inherited.
For a list of all members of this type, see LosFormatter Members.
[Visual Basic] NotInheritable Public Class LosFormatter [C#] public sealed class LosFormatter [C++] public __gc __sealed class LosFormatter [JScript] public class LosFormatter
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
The limited object serialization (LOS) formatter is designed for highly compact ASCII format serialization. This class supports serializing any object graph, but is optimized for those containing strings, arrays, and hashtables. It offers second order optimization for many of the .NET primitive types.
This is a private format, and only needs to remain consistent for the lifetime of a Web request. You are not allowed to persist objects serialized with this formatter for any significant length of time.
Note This format may be modified in the future.
This example creates a new LosFormatter object and sets its out
[Visual Basic] Dim losf As New LosFormatter() losf.Serialize(output, propertyData) [C#] LosFormatter losf = new LosFormatter(); losf.Serialize(output, propertyData); [C++] LosFormatter* losf = new LosFormatter(); losf->Serialize(output, propertyData); [JScript] var losf : LosFormatter = new LosFormatter() losf.Serialize(output, propertyData)
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
Assembly: System.Web (in System.Web.dll)