System.Runtime.Remoting.RemotingServices.IsObjectOutOfContext Method

Returns a Boolean value that indicates whether the object represented by the given proxy is contained in a different context than the object that called the current method.

Syntax

public static bool IsObjectOutOfContext (object tp)

Parameters

tp
The object to check.

Returns

true if the object is out of the current context; otherwise, false.

Remarks

A context is an ordered sequence of properties that define an environment for the objects that reside inside it. Contexts are created during the activation process for objects that are configured to require certain automatic services such synchronization, transactions, just-in-time activation, security, and so on. Multiple objects can live inside a context.

Requirements

Namespace: System.Runtime.Remoting
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0