The exception that is thrown when binding to a method results in more than one method matching the binding criteria. This class cannot be inherited.
For a list of all members of this type, see AmbiguousMatchException Members.
[Visual Basic] <Serializable> NotInheritable Public Class AmbiguousMatchException Inherits SystemException [C#] [Serializable] public sealed class AmbiguousMatchException : SystemException [C++] [Serializable] public __gc __sealed class AmbiguousMatchException : public SystemException [JScript] public Serializable class AmbiguousMatchException extends SystemException
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
AmbiguousMatchException uses the HRESULT COR_E_AMBIGUOUSMATCH which has the value 0x8000211D.
An AmbiguousMatchException is thrown if the application calls upon a class and it cannot determine which class or overloaded class to utilize. The binding attempts to locate the proper class to use, determined by the number of parameters and the type of parameters. If multiple acceptable classes are located, AmbiguousMatchException is thrown.
Overload resolution is a mechanism for selecting the best function member to invoke given an argument list and a set of candidate function members. Overload resolution selects the function member to invoke. If a selection cannot be determined, an AmbiguousMatchException is thrown.
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)