This documentation is archived and is not being maintained.

ContextBoundObject Class

Defines the base class for all context-bound classes.

For a list of all members of this type, see ContextBoundObject Members.


[Visual Basic]
MustInherit Public Class ContextBoundObject
   Inherits MarshalByRefObject
public abstract class ContextBoundObject : MarshalByRefObject
public __gc __abstract class ContextBoundObject : public
abstract class ContextBoundObject extends MarshalByRefObject

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Objects that reside in a context and are bound to the context rules are called context-bound objects. A context is a set of properties or usage rules that define an environment where a collection of objects resides. The rules are enforced when the objects are entering or leaving a context. Objects that are not context-bound are called agile objects.

Contexts are created during object activation. A new object is placed into an existing context or into a new context created using the attributes included in the metadata of the type. Context-bound classes are marked with a ContextAttribute that provides the usage rules. The context properties that can be added include policies regarding synchronization and transactions.


Namespace: System

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

ContextBoundObject Members | System Namespace | SynchronizationAttribute