[System] Remove any CFNetwork usage from the watchOS profile. Fixes #45847.
[mono.git] / mcs / class / referencesource / System / net / System / Net / webproxy.cs
index fe5858875faa8c20236f15eb604adbe491b20c26..b61133a980a9b7703f1a428ec686b7a199bd1d55 100644 (file)
@@ -504,7 +504,9 @@ namespace System.Net {
 #if MONO
         public static IWebProxy CreateDefaultProxy ()
         {
-#if MONOTOUCH
+#if MONOTOUCH_WATCH
+            throw new PlatformNotSupportedException ();
+#elif MONOTOUCH
             return Mono.Net.CFNetwork.GetDefaultProxy ();
 #elif MONODROID
             // Return the system web proxy.  This only works for ICS+.