NetDataContractSerializer.Deserialize Method (Stream)


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

Deserializes an XML document or stream into an object.

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

public object Deserialize(
	Stream stream


Type: System.IO.Stream

A Stream that contains the XML to deserialize.

Return Value

Type: System.Object

The deserialized object.

This method assumes the default format is text XML.

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.

.NET Framework
Available since 3.0
Return to top