System.Runtime.InteropServices.MarshalDirectiveException Class

The exception that is thrown by the marshaler when it encounters a System.Runtime.InteropServices.MarshalAsAttribute it does not support.

See Also: MarshalDirectiveException Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class MarshalDirectiveException : SystemException

Remarks

MarshalDirectiveException uses the HRESULT COR_E_MARSHALDIRECTIVE which has the value 0x80131535.

Requirements

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