Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
LogicalCallContext Class

LogicalCallContext Class

Provides a set of properties that are carried with the execution code path during remote method calls.

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

System.Object
   System.Runtime.Remoting.Messaging.LogicalCallContext

[Visual Basic]
<Serializable>
NotInheritable Public Class LogicalCallContext
   Implements ISerializable, ICloneable
[C#]
[Serializable]
public sealed class LogicalCallContext : ISerializable, ICloneable
[C++]
[Serializable]
public __gc __sealed class LogicalCallContext : public
   ISerializable, ICloneable
[JScript]
public
   Serializable
class LogicalCallContext implements ISerializable,
   ICloneable

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.

Remarks

The LogicalCallContext class is a version of the CallContext class that is used during method calls to remote application domains. The CallContext is a specialized collection object similar to a thread local storage for method calls, and provides data slots that are unique to each logical thread of execution. The slots are not shared across call contexts on other logical threads. Objects can be added to the CallContext as it travels down and up the execution code path, and examined by various objects along the path.

When a remote method call is made to an object in another AppDomain, the CallContext class generates a LogicalCallContext that travels along with the remote call. Only objects that expose the ILogicalThreadAffinative interface and are stored in the CallContext are propagated outside the AppDomain in a LogicalCallContext. Objects that do not support this interface are not transmitted in LogicalCallContext instances with remote method calls.

Note   This class makes a link demand. A SecurityException is thrown if the immediate caller does not have infrastructure permission. See Link Demands for more information.

Requirements

Namespace: System.Runtime.Remoting.Messaging

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)

.NET Framework Security: 

See Also

LogicalCallContext Members | System.Runtime.Remoting.Messaging Namespace

Show:
© 2015 Microsoft