System.Runtime.Serialization.Formatters.Soap 1.0.5000.0 2.0.0.0 System.Object System.Runtime.Remoting.Messaging.IRemotingFormatter

Beginning with the .NET Framework 2.0, this class is obsolete. Use instead.

The and classes implement the interface to support remote procedure calls (RPCs), and the interface (inherited by the ) to support serialization of a graph of objects. The class also supports RPCs with objects, without using the functionality.

During RPCs, the interface allows the specification of two separate object graphs: the graph of objects to serialize, and an additional graph that contains an array of header objects that convey information about the remote function call (for example, transaction ID or a method signature). For proper serialization, the root object of the first graph must be an object that implements either the interface or the interface.

During deserialization of an RPC, a delegate is specified to the method of the formatter. The remoting infrastructure uses the delegate to produce an object that supports the interface. This object contains the information stored in the headers, and becomes the root of the graph returned by the deserializer.

The can also handle RPCs that are produced with objects that implement the interface. To create an RPC without using the functionality, place an object that supports the interface at the root of a graph being serialized. To deserialize an RPC created in this manner the property must be set to another object that supports the interface, and contains the relevant remote call information.

## TimeSpan Serialization

TimeSpan objects are serialized according to the ISO 8601: 1998 section 5.5.3.2.1 "Alternative" standard.

## Version Information

The does not support serialization compatibility between versions of the .NET Framework. Serialization between versions 1.1 and 2.0 types in the Framework often fails. The following actions can be taken to remedy this issue:

Convert to use the , which provides compatibility between 1.1 and 2.0.

Convert existing persisted data to the new format.

Convert all producers and consumers of serialized data to version 2.0.

Avoid using types that changed from 1.1 to 2.0.

Serializes and deserializes an object, or an entire graph of connected objects, in SOAP format.

- Constructor

  The following table shows the initial property values for an instance of .

  Property

  Value

  null

  A new initialized to specify that the serialized data can be transmitted to or received from any of the other contexts

  Initializes a new instance of the class with default property values.

  1.0.5000.0
  2.0.0.0
- Constructor

  Objects are serialized to, or deserialized from, the specified .

  The serialization or deserialization process uses the specified to search for surrogates that are registered for the object types you want to deserialize. Surrogates are helpers that serialize and deserialize objects of specific classes. The default cannot handle the serialization of objects that derive from the for remoting purposes. In a remoting situation the specified replaces the object derived from with a object that is serialized by the specified surrogate selector. Therefore, if you want to use remote objects, set the parameter to an instance of . If you do not need surrogates, set the parameter to be null.

  Initializes a new instance of the class with the specified and .

  The to use with the new instance of . Can be null.
  The that holds the source and destination of the serialization. If the parameter is null, then the defaults to .
  1.0.5000.0
  2.0.0.0
- Property
  System.Runtime.Serialization.Formatters.FormatterAssemblyStyle To be added. To be added.

  Gets or sets the behavior of the deserializer with regards to finding and loading assemblies.

  1.0.5000.0
  2.0.0.0
- Property
  System.Runtime.Serialization.SerializationBinder To be added. To be added.

  Gets or sets the that controls the binding of a serialized object to a type.

  1.0.5000.0
  2.0.0.0
- Property
  System.Runtime.Serialization.StreamingContext To be added.

  The provides an enumeration that describes the source and the destination for a given serialized stream, as well as a way for serialization to retain that context and an additional caller-defined context.

  Gets or sets the used with this .

  1.0.5000.0
  2.0.0.0
- Method
  System.Object ``

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

  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.

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

  The top object of the deserialized graph (root).

  The stream that contains the data to deserialize. 1.0.5000.0 2.0.0.0
- Method
  System.Object `` ``

  Headers are used only for specific remoting applications. The parameter is one of two ways to return headers from a stream in SOAP Remote Procedure Call (RPC) format. The other way is to use the property.

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

  ## TimeSpan Serialization

  TimeSpan objects are serialized according to the ISO 8601: 1998 section 5.5.3.2.1 "Alternative" standard.

  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.

  Deserializes the stream into an object graph with any headers in that stream being handled by the given .

  The top object of the deserialized graph (root).

  The stream that contains the data to deserialize. Delegate to handle any headers found on the stream. Can be null. 1.0.5000.0 2.0.0.0
- Property
  System.Runtime.Serialization.Formatters.TypeFilterLevel To be added.

  Supported values are and (the default). For details about deserialization levels, see Automatic Deserialization in .NET Remoting.

  Gets or sets the of automatic deserialization for .NET Framework remoting.

  1.0.5000.0
  2.0.0.0
- Method
  System.Void `` ``

  TimeSpan objects are serialized according to the ISO 8601: 1998 section 5.5.3.2.1 "Alternative" standard.

  Serializes an object or graph of objects with the specified root to the given .

  The stream onto which the formatter puts the data to serialize. The object, or root of the object graph, to serialize. All child objects of this root object are automatically serialized. 1.0.5000.0 2.0.0.0
- Method
  System.Void `` `` ``

  Headers are used only for specific remoting applications.

  TimeSpan objects are serialized according to the ISO 8601: 1998 section 5.5.3.2.1 "Alternative" standard.

  Serializes an object or graph of objects with the specified root to the given in the SOAP Remote Procedure Call (RPC) format.

  The stream onto which the formatter puts the data to serialize. The object or root of the object graph to serialize. All child objects of this root object are automatically serialized. Remoting headers to include in the serialization. Can be null. 1.0.5000.0 2.0.0.0
- Property
  System.Runtime.Serialization.ISurrogateSelector To be added.

  Used by to generate instances for objects.

  Gets or sets the that controls type substitution during serialization and deserialization.

  1.0.5000.0
  2.0.0.0
- Property
  System.Runtime.Serialization.Formatters.ISoapMessage To be added.

  This property is used for SOAP remote procedure call (RPC) format and specifies that the SOAP top record is a method called remotely, not a common language runtime object type.

  Gets or sets the into which the SOAP top object is deserialized.

  1.0.5000.0
  2.0.0.0
- Property
  System.Runtime.Serialization.Formatters.FormatterTypeStyle To be added. To be added.

  Gets or sets the format in which type descriptions are laid out in the serialized stream.

  1.0.5000.0
  2.0.0.0