3 // Copyright (c) Microsoft Corporation. All rights reserved.
6 ////////////////////////////////////////////////////////////////////////////////
7 ////////////////////////////////////////////////////////////////////////////////
9 // AmbiguousMatchException is thrown when binding to a method results in more
11 // <OWNER>Microsoft</OWNER>
12 // than one method matching the binding criteria. This exception is thrown in
13 // general when something is Ambiguous.
18 namespace System.Reflection {
20 using SystemException = System.SystemException;
21 using System.Runtime.Serialization;
23 [System.Runtime.InteropServices.ComVisible(true)]
24 public sealed class AmbiguousMatchException : SystemException
27 public AmbiguousMatchException()
28 : base(Environment.GetResourceString("RFLCT.Ambiguous")) {
29 SetErrorCode(__HResults.COR_E_AMBIGUOUSMATCH);
32 public AmbiguousMatchException(String message) : base(message) {
33 SetErrorCode(__HResults.COR_E_AMBIGUOUSMATCH);
36 public AmbiguousMatchException(String message, Exception inner) : base(message, inner) {
37 SetErrorCode(__HResults.COR_E_AMBIGUOUSMATCH);
40 internal AmbiguousMatchException(SerializationInfo info, StreamingContext context) : base(info, context) {