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
10 /// The exception is thrown when the runtime rank of a safe array is different
11 /// than the array rank specified in the metadata.
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
)
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
)