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

  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. // ICustomAttributeProvider is an interface that is implemented by reflection
  19. // objects which support custom attributes.
  20. //
  21. // Date: July 99
  22. //
  23. namespace System.Reflection
  24. {
  25.    
  26.     using System;
  27.    
  28.     // Interface does not need to be marked with the serializable attribute
  29.     [System.Runtime.InteropServices.ComVisible(true)]
  30.     public interface ICustomAttributeProvider
  31.     {
  32.        
  33.         // Return an array of custom attributes identified by Type
  34.         object[] GetCustomAttributes(Type attributeType, bool inherit);
  35.        
  36.        
  37.         // Return an array of all of the custom attributes (named attributes are not included)
  38.         object[] GetCustomAttributes(bool inherit);
  39.        
  40.        
  41.         // Returns true if one or more instance of attributeType is defined on this member.
  42.         bool IsDefined(Type attributeType, bool inherit);
  43.        
  44.     }
  45. }

Developer Fusion