System Namespace
The exception that is thrown when an attempt to marshal an object across a context boundary fails.
Objects can marshal by value or by reference. Any attempt to pass an instance of an unmarshallable type through a context boundary will result in a ContextMarshalException.
ContextMarshalException uses the HRESULT COR_E_CONTEXTMARSHAL which has the value 0x80131504L.
ContextMarshalException uses the default Equals implementation, which supports reference equality.
For a list of initial property values for an instance of ContextMarshalException, see the ContextMarshalException constructors.