Mono Class Library: System Namespace

System.MissingFieldException Class

Represents the error that occurs when there is an attempt to dynamically access a field that does not exist. [Edit]

See Also: MissingFieldException Members

System.Object
     System.Exception
          System.SystemException
               System.MemberAccessException
                    System.MissingMemberException
                         System.MissingFieldException

[System.Runtime.InteropServices.ComVisible(true)]
public class MissingFieldException : MissingMemberException

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Remarks

Normally a compilation error is generated if code attempts to access a nonexistent member of a class. MissingFieldException is designed to handle cases where an attempt is made to dynamically access a renamed or deleted field of an assembly that is not referenced by its strong name. The MissingFieldException is thrown when code in a dependent assembly attempts to access a missing field in an assembly that was modified.

Note:

The following CIL instructions throw MissingFieldException:

  • ldfld
  • ldflda
  • ldsflda
  • stfld
  • stsfld
[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0