Export (0) Print
Expand All

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.

System.Object
   System.Web.UI.LosFormatter

[Visual Basic]
NotInheritable Public Class LosFormatter
[C#]
public sealed class LosFormatter
[C++]
public __gc __sealed class LosFormatter
[JScript]
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.

Remarks

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.

Example

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)

Requirements

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

Show:
© 2014 Microsoft