System.Configuration.ConfigurationSectionCollection.Get C# (CSharp) Метод

Get() публичный Метод

public Get ( string name ) : ConfigurationSection
name string
Результат ConfigurationSection
        public ConfigurationSection Get(string name) {
            VerifyIsAttachedToConfigRecord();

            // validate name
            if (String.IsNullOrEmpty(name))
                throw ExceptionUtil.ParameterNullOrEmpty("name");

            // prevent GetConfig from returning config not in this collection
            if (name.IndexOf('/') >= 0)
                return null;

            // get the section from the config record
            string configKey = BaseConfigurationRecord.CombineConfigKey(_configSectionGroup.SectionGroupName, name);
            return (ConfigurationSection)_configRecord.GetSection(configKey);
        }

Same methods

ConfigurationSectionCollection::Get ( int index ) : ConfigurationSection