MissingMethodException Class
Assembly: mscorlib (in mscorlib.dll)
'Declaration <SerializableAttribute> _ <ComVisibleAttribute(True)> _ Public Class MissingMethodException Inherits MissingMemberException Implements ISerializable 'Usage Dim instance As MissingMethodException
/** @attribute SerializableAttribute() */ /** @attribute ComVisibleAttribute(true) */ public class MissingMethodException extends MissingMemberException implements ISerializable
SerializableAttribute ComVisibleAttribute(true) public class MissingMethodException extends MissingMemberException implements ISerializable
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.
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.
System.Exception
System.SystemException
System.MemberAccessException
System.MissingMemberException
System.MissingMethodException
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.