System.Net.Configuration.SmtpSectionInternal.GetSection C# (CSharp) Méthode

GetSection() static private méthode

static private GetSection ( ) : SmtpSectionInternal
Résultat 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

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