The exception that is thrown when there is an attempt to dynamically access a field that does not exist.
Assembly: mscorlib (in mscorlib.dll)
Normally a compilation error is generated if code attempts to access a nonexistent member of a class. 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 is thrown when code in a dependent assembly attempts to access a missing field in an assembly that was modified.
uses the HRESULT COR_E_MISSINGFIELD, that has the value 0x80131511.
For a list of initial property values for an instance of , see the MissingFieldException constructors.
This example shows what happens if you attempt to use reflection to call a method that does not exist and access a field that does not exist. The application recovers by catching the MissingMethodException, , and MissingMemberException.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.