System.Runtime.Remoting.Messaging.IRemotingFormatter Interface

Assembly: Mscorlib.dll
Namespace: System.Runtime.Remoting.Messaging
Summary
Provides the remote procedure call (RPC) interface for all formatters.
C# Syntax:
public interface IRemotingFormatter : IFormatter
Remarks
The IRemotingFormatter interface allows the implementing formatter to send and receive remote procedure calls (RPCs). For more information, see BinaryFormatter.
See also:
System.Runtime.Remoting.Messaging Namespace

System.Runtime.Remoting.Messaging.IRemotingFormatter Member List:

Public Methods
Deserialize Begins the deserialization process of a remote procedure call (RPC).
Serialize Starts the serialization process of a remote procedure call (RPC).

Hierarchy:


System.Runtime.Remoting.Messaging.IRemotingFormatter Member Details

Method: Deserialize(
   Stream serializationStream,
   HeaderHandler handler
)
Summary
Begins the deserialization process of a remote procedure call (RPC).
C# Syntax:
object Deserialize(
   Stream serializationStream,
   HeaderHandler handler
);
Parameters:

serializationStream

The Stream from which the data is deserialized.

handler

The delegate designed to handle Header objects. Can be null.

Return Value:
The root of the deserialized object graph.
Remarks
Header objects contain information about a remote function call (for example, transaction ID or a method signature).

Note See the SOAP specification for more information on headers.

Return to top


Method: Serialize(
   Stream serializationStream,
   object graph,
   Header[] headers
)
Summary
Starts the serialization process of a remote procedure call (RPC).
C# Syntax:
void Serialize(
   Stream serializationStream,
   object graph,
   Header[] headers
);
Parameters:

serializationStream

The Stream onto which the specified graph is serialized.

graph

The root of the object graph to be serialized.

headers

The array of Header objects to transmit with the graph specified by the graph parameter. Can be null.

Remarks
Header objects contain information about a remote function call (for example, transaction ID or a method signature).

Note See the SOAP specification for more information on headers.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.