Merge pull request #2916 from ludovic-henry/fix-40306
[mono.git] / mcs / class / System.Web / System.Web.Configuration_2.0 / SystemWebSectionGroup.cs
index 143a97180a84864f83ecbe300f5dea8a05c7e7c8..4492ffb0cc5e9e70845af43cd57a675f40ee32fe 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
 
 using System;
 using System.Configuration;
-#if notyet
+#if WEBSERVICES_DEP
 using System.Web.Services.Configuration;
 #endif
 
@@ -136,6 +135,7 @@ namespace System.Web.Configuration
                }
 
                [ConfigurationProperty ("mobileControls")]
+               [Obsolete ("System.Web.Mobile.dll is obsolete.")]
                public ConfigurationSection MobileControls {
                        get { return Sections ["MobileControls"]; }
                }
@@ -205,7 +205,7 @@ namespace System.Web.Configuration
                        get { return (WebPartsSection)Sections ["webParts"]; }
                }
 
-#if notyet
+#if WEBSERVICES_DEP
                [ConfigurationProperty ("webServices")]
                public WebServicesSection WebServices {
                        get { return (WebServicesSection)Sections ["webServices"]; }
@@ -219,4 +219,3 @@ namespace System.Web.Configuration
        }
 }
 
-#endif