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

  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. ** File: AssemblyAttributes
  18. **
  19. **
  20. ** Purpose: For Assembly-related custom attributes.
  21. **
  22. **
  23. =============================================================================*/
  24. namespace System.Reflection
  25. {
  26.    
  27.     using System;
  28.     using System.Configuration.Assemblies;
  29.    
  30.     [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
  31.     [System.Runtime.InteropServices.ComVisible(true)]
  32.     public sealed class AssemblyCopyrightAttribute : Attribute
  33.     {
  34.         private string m_copyright;
  35.        
  36.         public AssemblyCopyrightAttribute(string copyright)
  37.         {
  38.             m_copyright = copyright;
  39.         }
  40.        
  41.         public string Copyright {
  42.             get { return m_copyright; }
  43.         }
  44.     }
  45.    
  46.    
  47.     [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
  48.     [System.Runtime.InteropServices.ComVisible(true)]
  49.     public sealed class AssemblyTrademarkAttribute : Attribute
  50.     {
  51.         private string m_trademark;
  52.        
  53.         public AssemblyTrademarkAttribute(string trademark)
  54.         {
  55.             m_trademark = trademark;
  56.         }
  57.        
  58.         public string Trademark {
  59.             get { return m_trademark; }
  60.         }
  61.     }
  62.    
  63.    
  64.     [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
  65.     [System.Runtime.InteropServices.ComVisible(true)]
  66.     public sealed class AssemblyProductAttribute : Attribute
  67.     {
  68.         private string m_product;
  69.        
  70.         public AssemblyProductAttribute(string product)
  71.         {
  72.             m_product = product;
  73.         }
  74.        
  75.         public string Product {
  76.             get { return m_product; }
  77.         }
  78.     }
  79.    
  80.    
  81.     [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
  82.     [System.Runtime.InteropServices.ComVisible(true)]
  83.     public sealed class AssemblyCompanyAttribute : Attribute
  84.     {
  85.         private string m_company;
  86.        
  87.         public AssemblyCompanyAttribute(string company)
  88.         {
  89.             m_company = company;
  90.         }
  91.        
  92.         public string Company {
  93.             get { return m_company; }
  94.         }
  95.     }
  96.    
  97.    
  98.     [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
  99.     [System.Runtime.InteropServices.ComVisible(true)]
  100.     public sealed class AssemblyDescriptionAttribute : Attribute
  101.     {
  102.         private string m_description;
  103.        
  104.         public AssemblyDescriptionAttribute(string description)
  105.         {
  106.             m_description = description;
  107.         }
  108.        
  109.         public string Description {
  110.             get { return m_description; }
  111.         }
  112.     }
  113.    
  114.    
  115.     [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
  116.     [System.Runtime.InteropServices.ComVisible(true)]
  117.     public sealed class AssemblyTitleAttribute : Attribute
  118.     {
  119.         private string m_title;
  120.        
  121.         public AssemblyTitleAttribute(string title)
  122.         {
  123.             m_title = title;
  124.         }
  125.        
  126.         public string Title {
  127.             get { return m_title; }
  128.         }
  129.     }
  130.    
  131.    
  132.     [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
  133.     [System.Runtime.InteropServices.ComVisible(true)]
  134.     public sealed class AssemblyConfigurationAttribute : Attribute
  135.     {
  136.         private string m_configuration;
  137.        
  138.         public AssemblyConfigurationAttribute(string configuration)
  139.         {
  140.             m_configuration = configuration;
  141.         }
  142.        
  143.         public string Configuration {
  144.             get { return m_configuration; }
  145.         }
  146.     }
  147.    
  148.    
  149.     [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
  150.     [System.Runtime.InteropServices.ComVisible(true)]
  151.     public sealed class AssemblyDefaultAliasAttribute : Attribute
  152.     {
  153.         private string m_defaultAlias;
  154.        
  155.         public AssemblyDefaultAliasAttribute(string defaultAlias)
  156.         {
  157.             m_defaultAlias = defaultAlias;
  158.         }
  159.        
  160.         public string DefaultAlias {
  161.             get { return m_defaultAlias; }
  162.         }
  163.     }
  164.    
  165.    
  166.     [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
  167.     [System.Runtime.InteropServices.ComVisible(true)]
  168.     public sealed class AssemblyInformationalVersionAttribute : Attribute
  169.     {
  170.         private string m_informationalVersion;
  171.        
  172.         public AssemblyInformationalVersionAttribute(string informationalVersion)
  173.         {
  174.             m_informationalVersion = informationalVersion;
  175.         }
  176.        
  177.         public string InformationalVersion {
  178.             get { return m_informationalVersion; }
  179.         }
  180.     }
  181.    
  182.    
  183.     [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
  184.     [System.Runtime.InteropServices.ComVisible(true)]
  185.     public sealed class AssemblyFileVersionAttribute : Attribute
  186.     {
  187.         private string _version;
  188.        
  189.         public AssemblyFileVersionAttribute(string version)
  190.         {
  191.             if (version == null)
  192.                 throw new ArgumentNullException("version");
  193.             _version = version;
  194.         }
  195.        
  196.         public string Version {
  197.             get { return _version; }
  198.         }
  199.     }
  200.    
  201.    
  202.     [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
  203.     [System.Runtime.InteropServices.ComVisible(true)]
  204.     unsafe public sealed class AssemblyCultureAttribute : Attribute
  205.     {
  206.         private string m_culture;
  207.        
  208.         public AssemblyCultureAttribute(string culture)
  209.         {
  210.             m_culture = culture;
  211.         }
  212.        
  213.         public string Culture {
  214.             get { return m_culture; }
  215.         }
  216.     }
  217.    
  218.    
  219.     [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
  220.     [System.Runtime.InteropServices.ComVisible(true)]
  221.     unsafe public sealed class AssemblyVersionAttribute : Attribute
  222.     {
  223.         private string m_version;
  224.        
  225.         public AssemblyVersionAttribute(string version)
  226.         {
  227.             m_version = version;
  228.         }
  229.        
  230.         public string Version {
  231.             get { return m_version; }
  232.         }
  233.     }
  234.    
  235.    
  236.     [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
  237.     [System.Runtime.InteropServices.ComVisible(true)]
  238.     public sealed class AssemblyKeyFileAttribute : Attribute
  239.     {
  240.         private string m_keyFile;
  241.        
  242.         public AssemblyKeyFileAttribute(string keyFile)
  243.         {
  244.             m_keyFile = keyFile;
  245.         }
  246.        
  247.         public string KeyFile {
  248.             get { return m_keyFile; }
  249.         }
  250.     }
  251.    
  252.    
  253.     [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
  254.     [System.Runtime.InteropServices.ComVisible(true)]
  255.     public sealed class AssemblyDelaySignAttribute : Attribute
  256.     {
  257.         private bool m_delaySign;
  258.        
  259.         public AssemblyDelaySignAttribute(bool delaySign)
  260.         {
  261.             m_delaySign = delaySign;
  262.         }
  263.        
  264.         public bool DelaySign {
  265.             get { return m_delaySign; }
  266.         }
  267.     }
  268.    
  269.    
  270.     [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
  271.     [System.Runtime.InteropServices.ComVisible(true)]
  272.     unsafe public sealed class AssemblyAlgorithmIdAttribute : Attribute
  273.     {
  274.         private uint m_algId;
  275.        
  276.         public AssemblyAlgorithmIdAttribute(AssemblyHashAlgorithm algorithmId)
  277.         {
  278.             m_algId = (uint)algorithmId;
  279.         }
  280.        
  281.         [CLSCompliant(false)]
  282.         public AssemblyAlgorithmIdAttribute(uint algorithmId)
  283.         {
  284.             m_algId = algorithmId;
  285.         }
  286.        
  287.         [CLSCompliant(false)]
  288.         public uint AlgorithmId {
  289.             get { return m_algId; }
  290.         }
  291.     }
  292.    
  293.    
  294.     [AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
  295.     [System.Runtime.InteropServices.ComVisible(true)]
  296.     unsafe public sealed class AssemblyFlagsAttribute : Attribute
  297.     {
  298.         private AssemblyNameFlags m_flags;
  299.        
  300.         [Obsolete("This constructor has been deprecated. Please use AssemblyFlagsAttribute(AssemblyNameFlags) instead. http://go.microsoft.com/fwlink/?linkid=14202")]
  301.         [CLSCompliant(false)]
  302.         public AssemblyFlagsAttribute(uint flags)
  303.         {
  304.             m_flags = (AssemblyNameFlags)flags;
  305.         }
  306.        
  307.         [Obsolete("This property has been deprecated. Please use AssemblyFlags instead. http://go.microsoft.com/fwlink/?linkid=14202")]
  308.         [CLSCompliant(false)]
  309.         public uint Flags {
  310.             get { return (uint)m_flags; }
  311.         }
  312.        
  313.         // This, of course, should be typed as AssemblyNameFlags. The compat police don't allow such changes.
  314.         public int AssemblyFlags {
  315.             get { return (int)m_flags; }
  316.         }
  317.        
  318.         [Obsolete("This constructor has been deprecated. Please use AssemblyFlagsAttribute(AssemblyNameFlags) instead. http://go.microsoft.com/fwlink/?linkid=14202")]
  319.         public AssemblyFlagsAttribute(int assemblyFlags)
  320.         {
  321.             m_flags = (AssemblyNameFlags)assemblyFlags;
  322.         }
  323.        
  324.        
  325.         public AssemblyFlagsAttribute(AssemblyNameFlags assemblyFlags)
  326.         {
  327.             m_flags = assemblyFlags;
  328.         }
  329.     }
  330.    
  331. }

Developer Fusion