The Labs \ Source Viewer \ SSCLI \ System.Reflection \ AmbiguousMatchException

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. ////////////////////////////////////////////////////////////////////////////////
  16. ////////////////////////////////////////////////////////////////////////////////
  17. //
  18. // AmbiguousMatchException is thrown when binding to a method results in more
  19. // than one method matching the binding criteria. This exception is thrown in
  20. // general when something is Ambiguous.
  21. //
  22. //
  23. //
  24. //
  25. namespace System.Reflection
  26. {
  27.     using System;
  28.     using SystemException = System.SystemException;
  29.     using System.Runtime.Serialization;
  30.     [Serializable()]
  31.     [System.Runtime.InteropServices.ComVisible(true)]
  32.     public sealed class AmbiguousMatchException : SystemException
  33.     {
  34.        
  35.         public AmbiguousMatchException() : base(Environment.GetResourceString("Arg_AmbiguousMatchException"))
  36.         {
  37.             SetErrorCode(__HResults.COR_E_AMBIGUOUSMATCH);
  38.         }
  39.        
  40.         public AmbiguousMatchException(string message) : base(message)
  41.         {
  42.             SetErrorCode(__HResults.COR_E_AMBIGUOUSMATCH);
  43.         }
  44.        
  45.         public AmbiguousMatchException(string message, Exception inner) : base(message, inner)
  46.         {
  47.             SetErrorCode(__HResults.COR_E_AMBIGUOUSMATCH);
  48.         }
  49.        
  50.         internal AmbiguousMatchException(SerializationInfo info, StreamingContext context) : base(info, context)
  51.         {
  52.         }
  53.        
  54.     }
  55. }

Developer Fusion