The Labs \ Source Viewer \ SSCLI \ System \ AttributeTargets

  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. namespace System
  18. {
  19.    
  20.     using System;
  21.    
  22.     // Enum used to indicate all the elements of the
  23.     // VOS it is valid to attach this element to.
  24.     [Flags(), Serializable()]
  25.     [System.Runtime.InteropServices.ComVisible(true)]
  26.     public enum AttributeTargets
  27.     {
  28.         Assembly = 1,
  29.         Module = 2,
  30.         Class = 4,
  31.         Struct = 8,
  32.         Enum = 16,
  33.         Constructor = 32,
  34.         Method = 64,
  35.         Property = 128,
  36.         Field = 256,
  37.         Event = 512,
  38.         Interface = 1024,
  39.         Parameter = 2048,
  40.         Delegate = 4096,
  41.         ReturnValue = 8192,
  42.         GenericParameter = 16384,
  43.        
  44.        
  45.         All = Assembly | Module | Class | Struct | Enum | Constructor | Method | Property | Field | Event | Interface | Parameter | Delegate | ReturnValue | GenericParameter
  46.     }
  47. }

Developer Fusion