Name

ContextBoundObject

Synopsis

An object inheriting from ContextBoundObject shares characteristics with an object inheriting from MarshalByRefObject. The difference is that a context further subdivides a domain. While instances of MarshalByRefObject are passed to other domains by reference and must interact through proxy objects, instances of ContextBoundObject are passed by reference to other contexts, even in the same domain. Unlike domains, contexts can provide a rich environment with other services such as synchronization, transactions, just-in-time activation, and security.

For more information, consult the System.Runtime.Remoting.Contexts namespace.

public abstract class ContextBoundObject : MarshalByRefObject {
// Protected Constructors
   protected method ContextBoundObject();  
}

Hierarchy

ObjectMarshalByRefObjectContextBoundObject

Get C# in a Nutshell 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.