SoapFormatter.Deserialize Method (Stream)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Deserializes the data on the provided stream and reconstitutes the graph of objects.

Namespace:   System.Runtime.Serialization.Formatters.Soap
Assembly:  System.Runtime.Serialization.Formatters.Soap (in System.Runtime.Serialization.Formatters.Soap.dll)

abstract Deserialize : 
        serializationStream:Stream -> Object
override Deserialize : 
        serializationStream:Stream -> Object


Type: System.IO.Stream

The stream that contains the data to deserialize.

Return Value

Type: System.Object

The top object of the deserialized graph (root).

Exception Condition

serializationStream is null.

For successful deserialization, the current position in the stream must be at the beginning of the object graph.

System_CAPS_security Security Note

Calling this method with untrusted data is a security risk. Call this method only with trusted data. For more information, see Untrusted Data Security Risks.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top