Assembly: mscorlib (in mscorlib.dll)
'Declaration <SerializableAttribute> _ <ComVisibleAttribute(True)> _ Public Class MissingFieldException Inherits MissingMemberException Implements ISerializable 'Usage Dim instance As MissingFieldException
/** @attribute SerializableAttribute() */ /** @attribute ComVisibleAttribute(true) */ public class MissingFieldException extends MissingMemberException implements ISerializable
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.
MissingFieldException uses the HRESULT COR_E_MISSINGFIELD, that has the value 0x80131511.
For a list of initial property values for an instance of MissingFieldException, 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, MissingFieldException, and MissingMemberException.
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.