System.Reflection.AmbiguousMatchException Class
Represents the error that occurs when binding to a method or retrieving custom attributes results in more than one item matching the specified criteria.

See Also: AmbiguousMatchException Members

Syntax

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

Remarks

System.Reflection.AmbiguousMatchException is thrown when a search that is intended to return no more than one match, detects multiple matching items. For example, this exception is thrown when the Attribute.GetCustomAttribute(MemberInfo, Type) methods (which return a single custom attribute), find multiple occurrences of the attribute.

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