Remotable Objects

Not all objects that you create will be remotable. In fact, odds are good that most of the objects you create will not be remotable because there are some specific constraints placed upon them to allow the remoting system to transmit them from place to place. Specifically, remotable objects must either implement ISerializable (or use SerializableAttribute) or derive from System.MarshalByRefObject. Objects that do neither are not remotable outside their context.

Serializable Objects

Objects that implement the ISerializable interface (or, again, that use SerializableAttribute) are considered to be serializable—that is, they are remoted by value. When an object is remoted, the entire object—or, at least, its state information (internal ...

Get Applied SOAP: Implementing .NET XML Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.