mscorlib(4.0.0.0) API with additions
MissingFieldException.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("MissingField_Name", ((Signature != null) ? (MissingMemberException.FormatSignature(Signature) + " ") : "") + ClassName + "." + MemberName);
27  }
28  }
29 
31  [__DynamicallyInvokable]
33  : base(Environment.GetResourceString("Arg_MissingFieldException"))
34  {
35  SetErrorCode(-2146233071);
36  }
37 
40  [__DynamicallyInvokable]
41  public MissingFieldException(string message)
42  : base(message)
43  {
44  SetErrorCode(-2146233071);
45  }
46 
50  [__DynamicallyInvokable]
51  public MissingFieldException(string message, Exception inner)
52  : base(message, inner)
53  {
54  SetErrorCode(-2146233071);
55  }
56 
61  : base(info, context)
62  {
63  }
64 
65  private MissingFieldException(string className, string fieldName, byte[] signature)
66  {
67  ClassName = className;
68  MemberName = fieldName;
69  Signature = signature;
70  }
71 
75  public MissingFieldException(string className, string fieldName)
76  {
77  ClassName = className;
78  MemberName = fieldName;
79  }
80  }
81 }
The exception that is thrown when there is an attempt to dynamically access a field that does not exi...
override string? Message
Gets the text string showing the signature of the missing field, the class name, and the field name....
string ClassName
Holds the class name of the missing member.
Definition: __Canon.cs:3
Describes the source and destination of a given serialized stream, and provides an additional caller-...
MissingFieldException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the T:System.MissingFieldException class with serialized data.
Provides information about, and means to manipulate, the current environment and platform....
Definition: Environment.cs:21
MissingFieldException(string message)
Initializes a new instance of the T:System.MissingFieldException class with a specified error message...
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
byte [] Signature
Holds the signature of the missing member.
MissingFieldException(string className, string fieldName)
Initializes a new instance of the T:System.MissingFieldException class with the specified class name ...
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.
MissingFieldException()
Initializes a new instance of the T:System.MissingFieldException class.
MissingFieldException(string message, Exception inner)
Initializes a new instance of the T:System.MissingFieldException class with a specified error message...