Represents an exception that is thrown when the formal type and marshal style of the object are incompatible.
Object
Exception
SystemException
ContextMarshalException
[Visual Basic] Public Class ContextMarshalException Inherits SystemException [C#] public class ContextMarshalException : SystemException [C++] public __gc class ContextMarshalException : public SystemException [JScript] public class ContextMarshalException extends SystemException
ContextMarshalException is an exception that is thrown when an attempt to marshal an object across a context boundary fails.
Namespace: System
Assembly: mscorlib.dll