Amazon.Util.Internal.RootConfig.GetServiceSection C# (CSharp) Метод

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

public GetServiceSection ( string service ) : System.Xml.Linq.XElement
service string
Результат System.Xml.Linq.XElement
        public XElement GetServiceSection(string service)
        {
            XElement section;
            if (ServiceSections.TryGetValue(service, out section))
                return section;

            return null;
        }
    }

Usage Example

        static AWSConfigsMobileAnalytics()
        {
#if BCL||AWSSDK_UNITY
            var root = new RootConfig();
            var section = root.GetServiceSection(mobileAnalyticsKey);
            if (section == null)
            {
                return;
            }

            var rootSection = new MobileAnalyticsConfigSectionRoot(section);
            if (rootSection.MobileAnalytics != null)
                AWSConfigsMobileAnalytics.Configure(rootSection.MobileAnalytics);
#endif
        }
All Usage Examples Of Amazon.Util.Internal.RootConfig::GetServiceSection