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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="MailSettingsSection.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.Configuration;
  18.     using System.Collections.Generic;
  19.     using System.Globalization;
  20.     using System.IO;
  21.     public sealed class MailSettingsSectionGroup : ConfigurationSectionGroup
  22.     {
  23.         public MailSettingsSectionGroup()
  24.         {
  25.         }
  26.        
  27.         public SmtpSection Smtp {
  28.             get { return (SmtpSection)Sections["smtp"]; }
  29.         }
  30.     }
  31.    
  32.     internal sealed class MailSettingsSectionGroupInternal
  33.     {
  34.         internal MailSettingsSectionGroupInternal()
  35.         {
  36.             this.smtp = SmtpSectionInternal.GetSection();
  37.         }
  38.        
  39.         internal SmtpSectionInternal Smtp {
  40.             get { return this.smtp; }
  41.         }
  42.        
  43.         static internal MailSettingsSectionGroupInternal GetSection()
  44.         {
  45.             return new MailSettingsSectionGroupInternal();
  46.         }
  47.        
  48.         SmtpSectionInternal smtp = null;
  49.     }
  50. }

Developer Fusion