System (mscorlib.dll)class

This exception is thrown when a marshaler fails to move an object across a context boundary. This is usually the case if a nonserializable object is passed as a parameter to a cross-context call, such as an instance of the CrossAppDomainDelegate.

public class ContextMarshalException : SystemException {
// Public Constructors
   public ContextMarshalException( );
   public ContextMarshalException(string message);
   public ContextMarshalException(string message,
        Exception inner);
// Protected Constructors
   protected ContextMarshalException(System.Runtime.Serialization.SerializationInfo info,
        System.Runtime.Serialization.StreamingContext context);


Object Exception(System.Runtime.Serialization.ISerializable) SystemException ContextMarshalException

    Part II: Programming with the .NET Framework
    Part IV: API Quick Reference
    Chapter 26. System