The Labs \ Source Viewer \ SSCLI \ System.Xml.Serialization \ XmlSerializerAssemblyAttribute

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlSerializerAssemblyAttribute.cs" company="Microsoft">
  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. // </copyright>
  14. // <owner current="true" primary="true">ElenaK</owner>
  15. //------------------------------------------------------------------------------
  16. namespace System.Xml.Serialization
  17. {
  18.     using System;
  19.    
  20.     /// <include file='doc\XmlSerializerAssemblyAttribute.uex' path='docs/doc[@for="XmlSerializerAssemblyAttribute"]/*' />
  21.     /// <devdoc>
  22.     /// <para>[To be supplied.]</para>
  23.     /// </devdoc>
  24.     [AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Interface | AttributeTargets.Struct, AllowMultiple = false)]
  25.     public sealed class XmlSerializerAssemblyAttribute : System.Attribute
  26.     {
  27.         string assemblyName;
  28.         string codeBase;
  29.        
  30.         /// <include file='doc\XmlSerializerAssemblyAttribute.uex' path='docs/doc[@for="XmlSerializerAssemblyAttribute.XmlSerializerAssemblyAttribute"]/*' />
  31.         /// <devdoc>
  32.         /// <para>[To be supplied.]</para>
  33.         /// </devdoc>
  34.         public XmlSerializerAssemblyAttribute() : this(null, null)
  35.         {
  36.         }
  37.        
  38.         /// <include file='doc\XmlSerializerAssemblyAttribute.uex' path='docs/doc[@for="XmlSerializerAssemblyAttribute.XmlSerializerAssemblyAttribute1"]/*' />
  39.         /// <devdoc>
  40.         /// <para>[To be supplied.]</para>
  41.         /// </devdoc>
  42.         public XmlSerializerAssemblyAttribute(string assemblyName) : this(assemblyName, null)
  43.         {
  44.         }
  45.        
  46.         /// <include file='doc\XmlSerializerAssemblyAttribute.uex' path='docs/doc[@for="XmlSerializerAssemblyAttribute.XmlSerializerAssemblyAttribute2"]/*' />
  47.         /// <devdoc>
  48.         /// <para>[To be supplied.]</para>
  49.         /// </devdoc>
  50.         public XmlSerializerAssemblyAttribute(string assemblyName, string codeBase)
  51.         {
  52.             this.assemblyName = assemblyName;
  53.             this.codeBase = codeBase;
  54.         }
  55.        
  56.         /// <include file='doc\XmlSerializerAssemblyAttribute.uex' path='docs/doc[@for="XmlSerializerAssemblyAttribute.Location"]/*' />
  57.         /// <devdoc>
  58.         /// <para>[To be supplied.]</para>
  59.         /// </devdoc>
  60.         public string CodeBase {
  61.             get { return codeBase; }
  62.             set { codeBase = value; }
  63.         }
  64.        
  65.         /// <include file='doc\XmlSerializerAssemblyAttribute.uex' path='docs/doc[@for="XmlSerializerAssemblyAttribute.AssemblyName"]/*' />
  66.         /// <devdoc>
  67.         /// <para>[To be supplied.]</para>
  68.         /// </devdoc>
  69.         public string AssemblyName {
  70.             get { return assemblyName; }
  71.             set { assemblyName = value; }
  72.         }
  73.     }
  74. }

Developer Fusion