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

  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. // InvalidFilterCriteriaException is thrown in FindMembers when the
  19. // filter criteria is not valid for the type of filter being used.
  20. //
  21. //
  22. //
  23. //
  24. namespace System.Reflection
  25. {
  26.    
  27.     using System;
  28.     using System.Runtime.Serialization;
  29.     using ApplicationException = System.ApplicationException;
  30.     [Serializable()]
  31.     [System.Runtime.InteropServices.ComVisible(true)]
  32.     public class InvalidFilterCriteriaException : ApplicationException
  33.     {
  34.        
  35.         public InvalidFilterCriteriaException() : base(Environment.GetResourceString("Arg_InvalidFilterCriteriaException"))
  36.         {
  37.             SetErrorCode(__HResults.COR_E_INVALIDFILTERCRITERIA);
  38.         }
  39.        
  40.         public InvalidFilterCriteriaException(string message) : base(message)
  41.         {
  42.             SetErrorCode(__HResults.COR_E_INVALIDFILTERCRITERIA);
  43.         }
  44.        
  45.         public InvalidFilterCriteriaException(string message, Exception inner) : base(message, inner)
  46.         {
  47.             SetErrorCode(__HResults.COR_E_INVALIDFILTERCRITERIA);
  48.         }
  49.        
  50.         protected InvalidFilterCriteriaException(SerializationInfo info, StreamingContext context) : base(info, context)
  51.         {
  52.         }
  53.        
  54.     }
  55. }

Developer Fusion