Move more COM exceptions to shared partition (dotnet/corert#6829)
[mono-project.git] / netcore / System.Private.CoreLib / shared / System / Runtime / InteropServices / SafeArrayRankMismatchException.cs
blob95781a7b07d12c5275cbc7eae90b607e6c15da92
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 using System.Runtime.Serialization;
7 namespace System.Runtime.InteropServices
9 /// <summary>
10 /// The exception is thrown when the runtime rank of a safe array is different
11 /// than the array rank specified in the metadata.
12 /// </summary>
13 [Serializable]
14 [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
15 public class SafeArrayRankMismatchException : SystemException
17 public SafeArrayRankMismatchException()
18 : base(SR.Arg_SafeArrayRankMismatchException)
20 HResult = HResults.COR_E_SAFEARRAYRANKMISMATCH;
23 public SafeArrayRankMismatchException(String message)
24 : base(message)
26 HResult = HResults.COR_E_SAFEARRAYRANKMISMATCH;
29 public SafeArrayRankMismatchException(String message, Exception inner)
30 : base(message, inner)
32 HResult = HResults.COR_E_SAFEARRAYRANKMISMATCH;
35 protected SafeArrayRankMismatchException(SerializationInfo info, StreamingContext context) : base(info, context)