2 // System.Runtime.InteropServices.InvalidComObjectException.cs
5 // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
9 using System.Runtime.Serialization;
11 namespace System.Runtime.InteropServices
13 public class InvalidComObjectException : SystemException
15 private const int ErrorCode = -2146233049; // = 0x80131527
17 public InvalidComObjectException ()
18 : base (Locale.GetText ("Invalid COM object is used"))
20 this.HResult = ErrorCode;
23 public InvalidComObjectException (string message)
26 this.HResult = ErrorCode;
29 public InvalidComObjectException (string message, Exception inner)
30 : base (message, inner)
32 this.HResult = ErrorCode;
35 protected InvalidComObjectException (SerializationInfo info, StreamingContext context)
36 : base (info, context)