1 //------------------------------------------------------------------------------
2 // <copyright file="SystemWebSectionGroup.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 //------------------------------------------------------------------------------
6 
7 namespace System.Web.Configuration {
8     using System.Configuration;
9     using System.Security.Permissions;
10 
11     public sealed class SystemWebSectionGroup : ConfigurationSectionGroup {
12 
SystemWebSectionGroup()13         public SystemWebSectionGroup() {
14         }
15 
16         // public properties
17         [ConfigurationProperty("anonymousIdentification")]
18         public AnonymousIdentificationSection AnonymousIdentification {
19             get {
20                 return (AnonymousIdentificationSection) Sections["anonymousIdentification"];
21             }
22         }
23 
24         [ConfigurationProperty("authentication")]
25         public AuthenticationSection Authentication {
26             get {
27                 return (AuthenticationSection) Sections["authentication"];
28             }
29         }
30 
31         [ConfigurationProperty("authorization")]
32         public AuthorizationSection Authorization {
33             get {
34                 return (AuthorizationSection) Sections["authorization"];
35             }
36         }
37 
38         [ConfigurationProperty("browserCaps")]
39         public DefaultSection BrowserCaps {
40             get {
41                 return (DefaultSection) Sections["browserCaps"];
42             }
43         }
44 
45         [ConfigurationProperty("clientTarget")]
46         public ClientTargetSection ClientTarget {
47             get {
48                 return (ClientTargetSection) Sections["clientTarget"];
49             }
50         }
51 
52         [ConfigurationProperty("compilation")]
53         public CompilationSection Compilation {
54             get {
55                 return (CompilationSection) Sections["compilation"];
56             }
57         }
58 
59         [ConfigurationProperty("customErrors")]
60         public CustomErrorsSection CustomErrors {
61             get {
62                 return (CustomErrorsSection) Sections["customErrors"];
63             }
64         }
65 
66         [ConfigurationProperty("deployment")]
67         public DeploymentSection Deployment {
68             get {
69                 return (DeploymentSection) Sections["deployment"];
70             }
71         }
72 
73         [ConfigurationProperty("deviceFilters")]
74         public DefaultSection DeviceFilters {
75             get {
76                 return (DefaultSection) Sections["deviceFilters"];
77             }
78         }
79 
80         [ConfigurationProperty("fullTrustAssemblies")]
81         public FullTrustAssembliesSection FullTrustAssemblies {
82             get {
83                 return (FullTrustAssembliesSection)Sections["fullTrustAssemblies"];
84             }
85         }
86 
87         [ConfigurationProperty("globalization")]
88         public GlobalizationSection Globalization {
89             get {
90                 return (GlobalizationSection) Sections["globalization"];
91             }
92         }
93 
94         [ConfigurationProperty("healthMonitoring")]
95         public HealthMonitoringSection HealthMonitoring {
96             get {
97                 return (HealthMonitoringSection) Sections["healthMonitoring"];
98             }
99         }
100 
101         [ConfigurationProperty("hostingEnvironment")]
102         public HostingEnvironmentSection HostingEnvironment {
103             get {
104                 return (HostingEnvironmentSection) Sections["hostingEnvironment"];
105             }
106         }
107 
108         [ConfigurationProperty("httpCookies")]
109         public HttpCookiesSection HttpCookies {
110             get {
111                 return (HttpCookiesSection) Sections["httpCookies"];
112             }
113         }
114 
115         [ConfigurationProperty("httpHandlers")]
116         public HttpHandlersSection HttpHandlers {
117             get {
118                 return (HttpHandlersSection) Sections["httpHandlers"];
119             }
120         }
121 
122         [ConfigurationProperty("httpModules")]
123         public HttpModulesSection HttpModules {
124             get {
125                 return (HttpModulesSection) Sections["httpModules"];
126             }
127         }
128 
129         [ConfigurationProperty("httpRuntime")]
130         public HttpRuntimeSection HttpRuntime {
131             get {
132                 return (HttpRuntimeSection) Sections["httpRuntime"];
133             }
134         }
135 
136         [ConfigurationProperty("identity")]
137         public  IdentitySection Identity {
138             get {
139                 return (IdentitySection) Sections["identity"];
140             }
141         }
142 
143         [ConfigurationProperty("machineKey")]
144         public MachineKeySection MachineKey {
145             get {
146                 return (MachineKeySection) Sections["machineKey"];
147             }
148         }
149 
150         [ConfigurationProperty("membership")]
151         public MembershipSection Membership {
152             get {
153                 return (MembershipSection) Sections["membership"];
154             }
155         }
156 
157         // Note that the return type is ConfigurationSection, not MobileControlsSection.
158         // The reason is that we don't want to link to System.Web.UI.MobileControls just
159         // to return the correct type of this property.
160         [ConfigurationProperty("mobileControls")]
161         [Obsolete("System.Web.Mobile.dll is obsolete.")]
162         public ConfigurationSection MobileControls {
163             get {
164                 return (ConfigurationSection) Sections["mobileControls"];
165             }
166         }
167 
168         [ConfigurationProperty("pages")]
169         public PagesSection Pages {
170             get {
171                 return (PagesSection) Sections["pages"];
172             }
173         }
174 
175         [ConfigurationProperty("partialTrustVisibleAssemblies")]
176         public PartialTrustVisibleAssembliesSection PartialTrustVisibleAssemblies {
177             get
178             {
179                 return (PartialTrustVisibleAssembliesSection)Sections["partialTrustVisibleAssemblies"];
180             }
181         }
182 
183         [ConfigurationProperty("processModel")]
184         public ProcessModelSection ProcessModel {
185             get {
186                 return (ProcessModelSection) Sections["processModel"];
187             }
188         }
189 
190         [ConfigurationProperty("profile")]
191         public ProfileSection Profile {
192             get {
193                 return (ProfileSection)Sections["profile"];
194             }
195         }
196 
197         [ConfigurationProperty("protocols")]
198         public DefaultSection Protocols {
199             get {
200                 return (DefaultSection)Sections["protocols"];
201             }
202         }
203 
204         [ConfigurationProperty("roleManager")]
205         public RoleManagerSection RoleManager {
206             get {
207                 return (RoleManagerSection) Sections["roleManager"];
208             }
209         }
210 
211         [ConfigurationProperty("securityPolicy")]
212         public SecurityPolicySection SecurityPolicy {
213             get {
214                 return (SecurityPolicySection) Sections["securityPolicy"];
215             }
216         }
217 
218         [ConfigurationProperty("sessionState")]
219         public SessionStateSection SessionState {
220             get {
221                 return (SessionStateSection) Sections["sessionState"];
222             }
223         }
224 
225         [ConfigurationProperty("siteMap")]
226         public SiteMapSection SiteMap {
227             get {
228                 return (SiteMapSection) Sections["siteMap"];
229             }
230         }
231 
232         [ConfigurationProperty("trace")]
233         public TraceSection Trace {
234             get {
235                 return (TraceSection) Sections["trace"];
236             }
237         }
238 
239         [ConfigurationProperty("trust")]
240         public TrustSection Trust {
241             get {
242                 return (TrustSection) Sections["trust"];
243             }
244         }
245 
246         [ConfigurationProperty("urlMappings")]
247         public UrlMappingsSection UrlMappings {
248             get {
249                 return (UrlMappingsSection) Sections["urlMappings"];
250             }
251         }
252 
253         [ConfigurationProperty("webControls")]
254         public WebControlsSection WebControls {
255             get {
256                 return (WebControlsSection) Sections["webControls"];
257             }
258         }
259 
260         [ConfigurationProperty("webParts")]
261         public WebPartsSection WebParts {
262             get {
263                 return (WebPartsSection) Sections["WebParts"];
264             }
265         }
266 
267         [ConfigurationProperty("webServices")]
268         public System.Web.Services.Configuration.WebServicesSection WebServices {
269             get {
270                 return (System.Web.Services.Configuration.WebServicesSection) Sections["webServices"];
271             }
272         }
273 
274         [ConfigurationProperty("xhtmlConformance")]
275         public XhtmlConformanceSection XhtmlConformance {
276             get {
277                 return (XhtmlConformanceSection) Sections["xhtmlConformance"];
278             }
279         }
280     }
281 }
282