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

82 lines
3.7 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System
{
/// <summary>The exception that is thrown when there is an attempt to dynamically access a method that does not exist.</summary>
/// <filterpriority>2</filterpriority>
// Token: 0x02000688 RID: 1672
[ComVisible(true)]
[Serializable]
public class MissingMethodException : MissingMemberException
{
/// <summary>Initializes a new instance of the <see cref="T:System.MissingMethodException" /> class.</summary>
// Token: 0x06003F59 RID: 16217 RVA: 0x000D5F00 File Offset: 0x000D4100
public MissingMethodException()
: base(Locale.GetText("Cannot find the requested method."))
{
base.HResult = -2146233069;
}
/// <summary>Initializes a new instance of the <see cref="T:System.MissingMethodException" /> class with a specified error message.</summary>
/// <param name="message">A <see cref="T:System.String" /> that describes the error. </param>
// Token: 0x06003F5A RID: 16218 RVA: 0x000D5F20 File Offset: 0x000D4120
public MissingMethodException(string message)
: base(message)
{
base.HResult = -2146233069;
}
/// <summary>Initializes a new instance of the <see cref="T:System.MissingMethodException" /> class with serialized 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>
// Token: 0x06003F5B RID: 16219 RVA: 0x000D5F34 File Offset: 0x000D4134
protected MissingMethodException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.MissingMethodException" /> 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 a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception. </param>
// Token: 0x06003F5C RID: 16220 RVA: 0x000D5F40 File Offset: 0x000D4140
public MissingMethodException(string message, Exception inner)
: base(message, inner)
{
base.HResult = -2146233069;
}
/// <summary>Initializes a new instance of the <see cref="T:System.MissingMethodException" /> class with the specified class name and method name.</summary>
/// <param name="className">The name of the class in which access to a nonexistent method was attempted. </param>
/// <param name="methodName">The name of the method that cannot be accessed. </param>
// Token: 0x06003F5D RID: 16221 RVA: 0x000D5F58 File Offset: 0x000D4158
public MissingMethodException(string className, string methodName)
: base(className, methodName)
{
base.HResult = -2146233069;
}
/// <summary>Gets the text string showing the class name, the method name, and the signature of the missing method. This property is read-only.</summary>
/// <returns>The error message string.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x17000BC4 RID: 3012
// (get) Token: 0x06003F5E RID: 16222 RVA: 0x000D5F70 File Offset: 0x000D4170
public override string Message
{
get
{
if (this.ClassName == null)
{
return base.Message;
}
string text = Locale.GetText("Method not found: '{0}.{1}'.");
return string.Format(text, this.ClassName, this.MemberName);
}
}
// Token: 0x04001936 RID: 6454
private const int Result = -2146233069;
}
}