The Labs \ Source Viewer \ SSCLI \ System.Net.Configuration \ SmtpSpecifiedPickupDirectoryElement

  1. //------------------------------------------------------------------------------
  2. // <copyright file="SmtpNetworkElement.cs" company="Microsoft Corporation">
  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. //------------------------------------------------------------------------------
  15. namespace System.Net.Configuration
  16. {
  17.     using System;
  18.     using System.Configuration;
  19.     using System.Net;
  20.     using System.Reflection;
  21.     using System.Security.Permissions;
  22.    
  23.     public sealed class SmtpSpecifiedPickupDirectoryElement : ConfigurationElement
  24.     {
  25.         public SmtpSpecifiedPickupDirectoryElement()
  26.         {
  27.             this.properties.Add(this.pickupDirectoryLocation);
  28.         }
  29.        
  30.         protected override ConfigurationPropertyCollection Properties {
  31.             get { return this.properties; }
  32.         }
  33.        
  34.         [ConfigurationProperty(ConfigurationStrings.PickupDirectoryLocation)]
  35.         public string PickupDirectoryLocation {
  36.             get { return (string)this[this.pickupDirectoryLocation]; }
  37.             set { this[this.pickupDirectoryLocation] = value; }
  38.         }
  39.        
  40.        
  41.        
  42.         ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection();
  43.        
  44.         readonly ConfigurationProperty pickupDirectoryLocation = new ConfigurationProperty(ConfigurationStrings.PickupDirectoryLocation, typeof(string), null, ConfigurationPropertyOptions.None);
  45.     }
  46.    
  47.     internal sealed class SmtpSpecifiedPickupDirectoryElementInternal
  48.     {
  49.         internal SmtpSpecifiedPickupDirectoryElementInternal(SmtpSpecifiedPickupDirectoryElement element)
  50.         {
  51.             this.pickupDirectoryLocation = element.PickupDirectoryLocation;
  52.         }
  53.        
  54.         internal string PickupDirectoryLocation {
  55.             get { return this.pickupDirectoryLocation; }
  56.         }
  57.        
  58.         string pickupDirectoryLocation;
  59.     }
  60. }

Developer Fusion