Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

MissingFieldException Class

The exception that is thrown when there is an attempt to dynamically access a field that does not exist.

For a list of all members of this type, see MissingFieldException Members.

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

[Visual Basic]
<Serializable>
Public Class MissingFieldException
   Inherits MissingMemberException
[C#]
[Serializable]
public class MissingFieldException : MissingMemberException
[C++]
[Serializable]
public __gc class MissingFieldException : public
   MissingMemberException
[JScript]
public
   Serializable
class MissingFieldException extends MissingMemberException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not 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.

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.

Requirements

Namespace: System

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

MissingFieldException Members | System Namespace | Exception | Handling and Throwing Exceptions

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.