This documentation is archived and is not being maintained.

MissingMethodException Class

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

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


[Visual Basic]
Public Class MissingMethodException
   Inherits MissingMemberException
public class MissingMethodException : MissingMemberException
public __gc class MissingMethodException : public
class MissingMethodException 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.


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

MissingMethodException uses the HRESULT COR_E_MISSINGMETHOD, that has the value 0x80131513.

For a list of initial property values for an instance of MissingMethodException, see the MissingMethodException constructors.


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

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