mscorlib(4.0.0.0) API with additions
MissingMethodException.cs
3 using System.Security;
4 
5 namespace System
6 {
9  [ComVisible(true)]
10  [__DynamicallyInvokable]
12  {
15  [__DynamicallyInvokable]
16  public override string Message
17  {
18  [SecuritySafeCritical]
19  [__DynamicallyInvokable]
20  get
21  {
22  if (ClassName == null)
23  {
24  return base.Message;
25  }
26  return Environment.GetResourceString("MissingMethod_Name", ClassName + "." + MemberName + ((Signature != null) ? (" " + MissingMemberException.FormatSignature(Signature)) : ""));
27  }
28  }
29 
31  [__DynamicallyInvokable]
33  : base(Environment.GetResourceString("Arg_MissingMethodException"))
34  {
35  SetErrorCode(-2146233069);
36  }
37 
40  [__DynamicallyInvokable]
41  public MissingMethodException(string message)
42  : base(message)
43  {
44  SetErrorCode(-2146233069);
45  }
46 
50  [__DynamicallyInvokable]
51  public MissingMethodException(string message, Exception inner)
52  : base(message, inner)
53  {
54  SetErrorCode(-2146233069);
55  }
56 
61  : base(info, context)
62  {
63  }
64 
65  private MissingMethodException(string className, string methodName, byte[] signature)
66  {
67  ClassName = className;
68  MemberName = methodName;
69  Signature = signature;
70  }
71 
75  public MissingMethodException(string className, string methodName)
76  {
77  ClassName = className;
78  MemberName = methodName;
79  }
80  }
81 }
The exception that is thrown when there is an attempt to dynamically access a method that does not ex...
string ClassName
Holds the class name of the missing member.
MissingMethodException(string message, Exception inner)
Initializes a new instance of the T:System.MissingMethodException class with a specified error messag...
override string? Message
Gets the text string showing the class name, the method name, and the signature of the missing method...
Definition: __Canon.cs:3
MissingMethodException(string message)
Initializes a new instance of the T:System.MissingMethodException class with a specified error messag...
Describes the source and destination of a given serialized stream, and provides an additional caller-...
Provides information about, and means to manipulate, the current environment and platform....
Definition: Environment.cs:21
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
The exception that is thrown when there is an attempt to dynamically access a class member that does ...
Allows an object to control its own serialization and deserialization.
Definition: ISerializable.cs:8
MissingMethodException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the T:System.MissingMethodException class with serialized data.
byte [] Signature
Holds the signature of the missing member.
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
Definition: Exception.cs:22
string MemberName
Holds the name of the missing member.
Specifies that the class can be serialized.
MissingMethodException(string className, string methodName)
Initializes a new instance of the T:System.MissingMethodException class with the specified class name...
MissingMethodException()
Initializes a new instance of the T:System.MissingMethodException class.