2 // System.Runtime.InteropServices.SafeArrayRankMismatchException.cs
5 // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
9 using System.Runtime.Serialization;
11 namespace System.Runtime.InteropServices
13 public class SafeArrayRankMismatchException : SystemException
15 private const int ErrorCode = -2146233032; // = 0x80131538
17 public SafeArrayRankMismatchException ()
18 : base (Locale.GetText ("The incoming SAVEARRAY does not match the rank of the expected managed signature"))
20 this.HResult = ErrorCode;
23 public SafeArrayRankMismatchException (string message)
26 this.HResult = ErrorCode;
29 public SafeArrayRankMismatchException (string message, Exception inner)
30 : base (message, inner)
32 this.HResult = ErrorCode;
35 protected SafeArrayRankMismatchException (SerializationInfo info, StreamingContext context)
36 : base (info, context)