Use IndexOf (char)
[mono.git] / mcs / class / System / System.Net / WebExceptionStatus.cs
old mode 100755 (executable)
new mode 100644 (file)
index 0b0844e..184927f
@@ -1,96 +1,63 @@
-// WebExceptionStatus.cs\r
-//\r
-// This code was automatically generated from\r
-// ECMA CLI XML Library Specification.\r
-// Generator: libgen.xsl\r
-// Source file: AllTypes.xml\r
-// URL: http://msdn.microsoft.com/net/ecma/AllTypes.xml\r
-//\r
-// (C) 2001 Ximian, Inc.  http://www.ximian.com\r
-\r
-\r
-namespace System.Net {\r
-\r
-\r
-       /// <summary>\r
-       /// <para> Defines status codes for the <see cref="T:System.Net.WebException" /> class.\r
-       ///  </para>\r
-       /// </summary>\r
-       /// <remarks>\r
-       /// <para>This enumeration defines the status\r
-       ///  codes assigned to the <see cref="P:System.Net.WebException.Status" />\r
-       ///  property.</para>\r
-       /// </remarks>\r
-       public enum WebExceptionStatus {\r
-\r
-               /// <summary><para> No error was encountered.\r
-               ///  </para><para><block subset="none" type="note">This is the default value for\r
-               ///  <see cref="P:System.Net.WebException.Status" /> . </block></para></summary>\r
-               Success = 0,\r
-\r
-               /// <summary><para>\r
-               ///        The name resolver service could not resolve the host name.\r
-               ///     </para></summary>\r
-               NameResolutionFailure = 1,\r
-\r
-               /// <summary><para> The remote service point could not be contacted at the transport level.\r
-               ///  </para></summary>\r
-               ConnectFailure = 2,\r
-\r
-               /// <summary><para>\r
-               ///        A complete response was not received from the remote server.\r
-               ///     </para></summary>\r
-               ReceiveFailure = 3,\r
-\r
-               /// <summary><para>\r
-               ///        A complete request could not be sent to the remote server.\r
-               ///     </para></summary>\r
-               SendFailure = 4,\r
-\r
-               /// <summary></summary>\r
-               PipelineFailure = 5,\r
-\r
-               /// <summary><para> The request was canceled or the <see cref="M:System.Net.WebRequest.Abort" qualify="true" /> method was called.\r
-               ///    </para></summary>\r
-               RequestCanceled = 6,\r
-\r
-               /// <summary><para> \r
-               ///  The response received from the server was complete\r
-               ///  but indicated a protocol-level error.\r
-               ///  </para><para><block subset="none" type="note">For example, an HTTP protocol error such \r
-               ///  as 401 Access Denied would use this status. </block></para></summary>\r
-               ProtocolError = 7,\r
-\r
-               /// <summary><para>\r
-               ///        The connection was prematurely closed.\r
-               ///     </para></summary>\r
-               ConnectionClosed = 8,\r
-\r
-               /// <summary><para>\r
-               ///        A server certificate could not be validated.\r
-               ///     </para></summary>\r
-               TrustFailure = 9,\r
-\r
-               /// <summary><para>\r
-               ///        An error occurred in a secure channel link.\r
-               ///     </para></summary>\r
-               SecureChannelFailure = 10,\r
-\r
-               /// <summary><para>The server response was not a valid HTTP response.</para></summary>\r
-               ServerProtocolViolation = 11,\r
-\r
-               /// <summary><para>The connection for a request that specifies the Keep-alive \r
-               ///       header was closed unexpectedly.</para></summary>\r
-               KeepAliveFailure = 12,\r
-\r
-               /// <summary><para> An internal asynchronous request is pending.</para></summary>\r
-               Pending = 13,\r
-\r
-               /// <summary><para>No response was received during the timeout period for a request.</para></summary>\r
-               Timeout = 14,\r
-\r
-               /// <summary><para>The name resolver service could not resolve the proxy host name.</para></summary>\r
-               ProxyNameResolutionFailure = 15,\r
-       } // WebExceptionStatus\r
-\r
-} // System.Net\r
+// System.Net.WebExceptionStatus.cs
+//
+// Author:
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//   originally autogenerated by Sergey Chaban (serge@wildwestsoftware.com)
+//
+// (C) 2001 Ximian, Inc.  http://www.ximian.com
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+namespace System.Net 
+{
+       public enum WebExceptionStatus 
+       {
+               Success = 0,
+               NameResolutionFailure = 1,
+               ConnectFailure = 2,
+               ReceiveFailure = 3,
+               SendFailure = 4,
+               PipelineFailure = 5,
+               RequestCanceled = 6,
+               ProtocolError = 7,
+               ConnectionClosed = 8,
+               TrustFailure = 9,
+               SecureChannelFailure = 10,
+               ServerProtocolViolation = 11,
+               KeepAliveFailure = 12,
+               Pending = 13,
+               Timeout = 14,
+               ProxyNameResolutionFailure = 15,
+
+#if NET_1_1
+               UnknownError = 16,
+               MessageLengthLimitExceeded = 17,
+#endif
+
+#if NET_2_0
+               CacheEntryNotFound = 18,
+               RequestProhibitedByCachePolicy = 19,
+               RequestProhibitedByProxy = 20,
+#endif
+
+       }
+}