System.MissingFieldException Class
Represents the error that occurs when there is an attempt to dynamically access a field that does not exist.

See Also: MissingFieldException Members

Syntax

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

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

Thread Safety

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

Requirements

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