Added support for GSHAREDVT and DYNCALL on Windows x64 for full AOT builds.
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / ExternalException.cs
index 6dccc75577809e9828b3d5ff93d54a3a709e0c67..f149ed31ab7597d505e2172c7c7c4dfa4fc57cfa 100644 (file)
 using System.Runtime.Serialization;
 using System.Globalization;
 
-namespace System.Runtime.InteropServices {
+namespace System.Runtime.InteropServices
+{
        [Serializable]
-       public class ExternalException : SystemException {
-               // Constructors
+       [ComVisible (true)]
+       public class ExternalException : SystemException
+       {
                public ExternalException ()
                        : base (Locale.GetText ("External exception"))
                {
+                       HResult = -2147467259;
                }
 
                public ExternalException (string message)
                        : base (message)
                {
+                       HResult = -2147467259;
                }
 
                protected ExternalException(SerializationInfo info, StreamingContext context)
                        : base (info, context) {
                }
-               
+
                public ExternalException (string message, Exception inner)
                        : base (message, inner)
                {
+                       HResult = -2147467259;
                }
 
                public ExternalException (string message, int errorCode)