Exemplo n.º 1
0
 /// <summary>
 /// Tries to read the configuration section using the <see cref="ReadConfigSection"/> method. However,
 /// this method returns false is the configuration section was unavailable.
 /// </summary>
 /// <param name="section">The section loaded from the configuration file</param>
 /// <returns>The configuration section</returns>
 public static bool TryReadConfigSection(out UkadcDiagnosticsSection section)
 {
     section = (UkadcDiagnosticsSection) ConfigurationManager.GetSection(SECTION_NAME);
     return section != null;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Tries to read the configuration section using the <see cref="ReadConfigSection"/> method. However,
 /// this method returns false is the configuration section was unavailable.
 /// </summary>
 /// <param name="section">The section loaded from the configuration file</param>
 /// <returns>The configuration section</returns>
 public static bool TryReadConfigSection(out UkadcDiagnosticsSection section)
 {
     section = (UkadcDiagnosticsSection)ConfigurationManager.GetSection(SECTION_NAME);
     return(section != null);
 }