System.Configuration.ConfigurationManager.GetSection C# (CSharp) Метод

GetSection() публичный статический Метод

public static GetSection ( string sectionName ) : object
sectionName string
Результат object
        public static object GetSection(string sectionName) {
            // Avoid unintended AV's by ensuring sectionName is not empty.
            // For compatibility, we cannot throw an InvalidArgumentException.
            if (String.IsNullOrEmpty(sectionName)) {
                return null;
            }

            PrepareConfigSystem();

            object section = s_configSystem.GetSection(sectionName);
            return section;
        }

Usage Example

 internal static object GetSection(string sectionName)
 {
     return(ConfigurationManager.GetSection(sectionName));
 }
All Usage Examples Of System.Configuration.ConfigurationManager::GetSection