System.Net.Configuration.SmtpSectionInternal.GetSection C# (CSharp) Method

GetSection() static private method

static private GetSection ( ) : SmtpSectionInternal
return SmtpSectionInternal
        internal static SmtpSectionInternal GetSection()
        {
            lock (ClassSyncObject)
            {
                SmtpSection section = PrivilegedConfigurationManager.GetSection(ConfigurationStrings.SmtpSectionPath) as SmtpSection;
                if (section == null)
                    return null;

                return new SmtpSectionInternal(section);
            }
        }

Usage Example

Beispiel #1
0
 internal MailSettingsSectionGroupInternal()
 {
     this.smtp = SmtpSectionInternal.GetSection();
 }