File: System\Transactions\Configuration\TransactionsSectionGroup.cs
Project: ndp\cdf\src\NetFx20\System.Transactions\System.Transactions.csproj (System.Transactions)
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
//------------------------------------------------------------------------------
 
namespace System.Transactions.Configuration
{
    using System;
    using System.Configuration;
 
    public sealed class TransactionsSectionGroup : ConfigurationSectionGroup
    {
        public TransactionsSectionGroup()
        {
        }
 
        [ConfigurationProperty(ConfigurationStrings.DefaultSettingsSectionName)]
        public DefaultSettingsSection DefaultSettings
        {
            get { return (DefaultSettingsSection)this.Sections[ConfigurationStrings.DefaultSettingsSectionName]; }
        }
 
        static public TransactionsSectionGroup GetSectionGroup(Configuration config)
        {
            if (config == null)
            {
                throw new ArgumentNullException("config");
            }
            return (TransactionsSectionGroup)config.GetSectionGroup(ConfigurationStrings.SectionGroupName);
        }
 
        [ConfigurationProperty(ConfigurationStrings.MachineSettingsSectionName)]
        public MachineSettingsSection MachineSettings
        {
            get { return (MachineSettingsSection)this.Sections[ConfigurationStrings.MachineSettingsSectionName]; }
        }
    }
}