Files
2026-06-04 11:42:34 +02:00

54 lines
2.6 KiB
C#

using System;
using System.Runtime.Serialization;
namespace System.Runtime.InteropServices
{
/// <summary>The exception thrown when the rank of an incoming SAFEARRAY does not match the rank specified in the managed signature.</summary>
// Token: 0x0200033D RID: 829
[ComVisible(true)]
[Serializable]
public class SafeArrayRankMismatchException : SystemException
{
/// <summary>Initializes a new instance of the SafeArrayTypeMismatchException class with default values.</summary>
// Token: 0x0600230E RID: 8974 RVA: 0x0007A748 File Offset: 0x00078948
public SafeArrayRankMismatchException()
: base(Locale.GetText("The incoming SAVEARRAY does not match the rank of the expected managed signature"))
{
base.HResult = -2146233032;
}
/// <summary>Initializes a new instance of the SafeArrayRankMismatchException class with the specified message.</summary>
/// <param name="message">The message that indicates the reason for the exception. </param>
// Token: 0x0600230F RID: 8975 RVA: 0x0007A768 File Offset: 0x00078968
public SafeArrayRankMismatchException(string message)
: base(message)
{
base.HResult = -2146233032;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.SafeArrayRankMismatchException" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.</summary>
/// <param name="message">The error message that explains the reason for the exception. </param>
/// <param name="inner">The exception that is the cause of the current exception. If the <paramref name="inner" /> parameter is not null, the current exception is raised in a catch block that handles the inner exception. </param>
// Token: 0x06002310 RID: 8976 RVA: 0x0007A77C File Offset: 0x0007897C
public SafeArrayRankMismatchException(string message, Exception inner)
: base(message, inner)
{
base.HResult = -2146233032;
}
/// <summary>Initializes a new instance of the SafeArrayTypeMismatchException class from serialization data.</summary>
/// <param name="info">The object that holds the serialized object data. </param>
/// <param name="context">The contextual information about the source or destination. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="info" /> is null. </exception>
// Token: 0x06002311 RID: 8977 RVA: 0x0007A794 File Offset: 0x00078994
protected SafeArrayRankMismatchException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
// Token: 0x04000DA5 RID: 3493
private const int ErrorCode = -2146233032;
}
}