System.Reflection.AmbiguousMatchException Class

The exception that is thrown when binding to a member results in more than one member matching the binding criteria. This class cannot be inherited.

See Also: AmbiguousMatchException Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public sealed class AmbiguousMatchException : SystemException

Remarks

AmbiguousMatchException uses the HRESULT COR_E_AMBIGUOUSMATCH which has the value 0x8000211D.

An AmbiguousMatchException is thrown when a member is invoked late-bound and multiple overloads satisfy the binding criteria, or when more than one member matches the binding criteria passed to a reflection method that can return only a single result (for example, erload:System.Type.GetMethod or erload:System.Type.GetProperty).

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0