SmtpSpecifiedPickupDirectoryElement.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / Configuration / SmtpSpecifiedPickupDirectoryElement.cs / 1 / SmtpSpecifiedPickupDirectoryElement.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Net.Configuration 
{ 
    using System;
    using System.Configuration; 
    using System.Net;
    using System.Reflection;
    using System.Security.Permissions;
 
    public sealed class SmtpSpecifiedPickupDirectoryElement : ConfigurationElement
    { 
        public SmtpSpecifiedPickupDirectoryElement() 
        {
            this.properties.Add(this.pickupDirectoryLocation); 
        }

        protected override ConfigurationPropertyCollection Properties
        { 
            get
            { 
                return this.properties; 
            }
        } 

        [ConfigurationProperty(ConfigurationStrings.PickupDirectoryLocation)]
        public string PickupDirectoryLocation
        { 
            get { return (string)this[this.pickupDirectoryLocation]; }
            set { this[this.pickupDirectoryLocation] = value; } 
        } 

 	 
        //


 
        ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection();
 
        readonly ConfigurationProperty pickupDirectoryLocation = 
            new ConfigurationProperty(ConfigurationStrings.PickupDirectoryLocation, typeof(string), null,
                    ConfigurationPropertyOptions.None); 
    }

    internal sealed class SmtpSpecifiedPickupDirectoryElementInternal
    { 
        internal SmtpSpecifiedPickupDirectoryElementInternal(SmtpSpecifiedPickupDirectoryElement element)
        { 
            this.pickupDirectoryLocation = element.PickupDirectoryLocation; 
        }
 
        internal string PickupDirectoryLocation
        {
            get { return this.pickupDirectoryLocation; }
        } 

        string pickupDirectoryLocation; 
    } 
}
 


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK