LosFormatter Class
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

LosFormatter Class

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
public sealed class LosFormatter
public __gc __sealed class LosFormatter
public class LosFormatter

Thread Safety

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)

LosFormatter losf = new LosFormatter(); 
losf.Serialize(output, propertyData);

LosFormatter* losf = new LosFormatter(); 
losf->Serialize(output, propertyData);

var losf : LosFormatter = new LosFormatter()
losf.Serialize(output, propertyData)


Namespace: System.Web.UI

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Web (in System.Web.dll)

See Also

LosFormatter Members | System.Web.UI Namespace

© 2016 Microsoft