<Type Name="WebException" FullName="System.Net.WebException" FullNameSP="System_Net_WebException" Maintainer="ecma">
  <TypeSignature Language="ILASM" Value=".class public serializable WebException extends System.InvalidOperationException" />
  <TypeSignature Language="C#" Value="public class WebException : InvalidOperationException" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi serializable beforefieldinit WebException extends System.InvalidOperationException implements class System.Runtime.Serialization.ISerializable" />
  <MemberOfLibrary>Networking</MemberOfLibrary>
  <AssemblyInfo>
    <AssemblyName>System</AssemblyName>
    <AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ]</AssemblyPublicKey>
    <AssemblyVersion>1.0.x.x</AssemblyVersion>
    <AssemblyVersion>1.0.5000.0</AssemblyVersion>
    <AssemblyVersion>2.0.0.0</AssemblyVersion>
    <AssemblyVersion>4.0.0.0</AssemblyVersion>
  </AssemblyInfo>
  <ThreadingSafetyStatement>All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.</ThreadingSafetyStatement>
  <Base>
    <BaseTypeName>System.InvalidOperationException</BaseTypeName>
  </Base>
  <Interfaces />
  <Docs>
    <summary>
      <para> Represents an error that occurs
 while accessing the Internet through a pluggable protocol.</para>
    </summary>
    <remarks>
      <block subset="none" type="note">
        <para>
          <see cref="T:System.Net.WebException" /> is thrown by classes
 derived from <see cref="T:System.Net.WebRequest" /> and <see cref="T:System.Net.WebResponse" /> that implement pluggable
 protocols when an error occurs in
 while accessing the Internet.</para>
        <para>When <see cref="T:System.Net.WebException" /> is thrown by a method in a class derived from <see cref="T:System.Net.WebRequest" /> ,
 the <see cref="P:System.Net.WebException.Response" /> property provides the Internet response to the
 application.</para>
      </block>
    </remarks>
  </Docs>
  <Members>
    <Member MemberName=".ctor">
      <MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor()" />
      <MemberSignature Language="C#" Value="public WebException ();" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
      <MemberType>Constructor</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyVersion>4.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue />
      <Parameters />
      <Docs>
        <summary>
          <para>Constructs and initializes a new instance of the <see cref="T:System.Net.WebException" /> class.</para>
        </summary>
        <remarks>
          <para>This constructor initializes the <see cref="!:System.Net.WebException.Message" /> property of the new
   instance to a system-supplied message that describes the error. This message takes
   into account the current system culture. The <see cref="!:System.Net.WebException.InnerException" /> and <see cref="P:System.Net.WebException.Response" /> properties of the new instance are initialized  to <see langword="null" />. The <see cref="P:System.Net.WebException.Status" /> property is initialized to <see cref="P:System.Net.WebException.Status.UnknownError" />.</para>
        </remarks>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
    <Member MemberName=".ctor">
      <MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor(string message)" />
      <MemberSignature Language="C#" Value="public WebException (string message);" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string message) cil managed" />
      <MemberType>Constructor</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyVersion>4.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue />
      <Parameters>
        <Parameter Name="message" Type="System.String" />
      </Parameters>
      <Docs>
        <param name="message">A <see cref="T:System.String" /> that describes the error. The content of <paramref name="message" /> is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param>
        <summary>
          <para>Constructs and initializes a new instance of the <see cref="T:System.Net.WebException" />
class.</para>
        </summary>
        <remarks>
          <para> This constructor initializes the <see cref="!:System.Net.WebException.Message" /> property of the new instance using <paramref name="message" />. If <paramref name="message" /> is 
<see langword="null" />, the <see cref="!:System.Net.WebException.Message" /> property is initialized to the 
   system-supplied message provided by the constructor that takes no arguments.</para>
          <para> The <see cref="!:System.Net.WebException.InnerException" /> and <see cref="P:System.Net.WebException.Response" /> properties of the new instance are
initialized to <see langword="null" />. The <see cref="P:System.Net.WebException.Status" /> property is initialized to <see cref="P:System.Net.WebException.Status.UnknownError" />.</para>
        </remarks>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="protected WebException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);" />
      <MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class System.Runtime.Serialization.SerializationInfo serializationInfo, valuetype System.Runtime.Serialization.StreamingContext streamingContext) cil managed" />
      <MemberType>Constructor</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyVersion>4.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Parameters>
        <Parameter Name="serializationInfo" Type="System.Runtime.Serialization.SerializationInfo" />
        <Parameter Name="streamingContext" Type="System.Runtime.Serialization.StreamingContext" />
      </Parameters>
      <Docs>
        <param name="serializationInfo">To be added.</param>
        <param name="streamingContext">To be added.</param>
        <summary>To be added.</summary>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName=".ctor">
      <MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor(string message, class System.Exception innerException)" />
      <MemberSignature Language="C#" Value="public WebException (string message, Exception innerException);" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string message, class System.Exception innerException) cil managed" />
      <MemberType>Constructor</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyVersion>4.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue />
      <Parameters>
        <Parameter Name="message" Type="System.String" />
        <Parameter Name="innerException" Type="System.Exception" />
      </Parameters>
      <Docs>
        <param name="message">A <see cref="T:System.String" /> that describes the error. The content of <paramref name="message" /> is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param>
        <param name="innerException">An instance of <see cref="T:System.Exception" /> that is the cause of the current exception. If <paramref name="innerException" /> is non-null, then the current Exception was raised in a catch block handling <paramref name="innerException" /> .</param>
        <summary>
          <para>Constructs and initializes a new instance of the <see cref="T:System.Net.WebException" />
class.</para>
        </summary>
        <remarks>
          <para>This constructor initializes the <see cref="!:System.Net.WebException.Message" />
property of the new instance using <paramref name="message" /> and the <see cref="!:System.Net.WebException.InnerException" /> property using <paramref name="innerException" />. If <paramref name="message" /> is
<see langword="null" />, the <see cref="!:System.Net.WebException.Message" /> property is initialized to the 
system-supplied message provided by the constructor that takes no arguments.</para>
          <para> The
<see cref="P:System.Net.WebException.Response" /> property of the new instance are initialized to <see langword="null" />. The <see cref="P:System.Net.WebException.Status" /> property is initialized to <see cref="P:System.Net.WebException.Status.UnknownError" />.</para>
          <para>
            <block subset="none" type="note">For more information on inner
   exceptions, see <see cref="P:System.Exception.InnerException" />.</block>
          </para>
        </remarks>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
    <Member MemberName=".ctor">
      <MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor(string message, valuetype System.Net.WebExceptionStatus status)" />
      <MemberSignature Language="C#" Value="public WebException (string message, System.Net.WebExceptionStatus status);" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string message, valuetype System.Net.WebExceptionStatus status) cil managed" />
      <MemberType>Constructor</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyVersion>4.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue />
      <Parameters>
        <Parameter Name="message" Type="System.String" />
        <Parameter Name="status" Type="System.Net.WebExceptionStatus" />
      </Parameters>
      <Docs>
        <param name="message">A <see cref="T:System.String" /> that describes the error. The content of <paramref name="message" /> is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param>
        <param name="status">A <see cref="T:System.Net.WebExceptionStatus" /> value that describes the status of the network connection after the exception is thrown.</param>
        <summary>
          <para>Constructs and initializes a new instance of the <see cref="T:System.Net.WebException" />
class.</para>
        </summary>
        <remarks>
          <para>This constructor initializes the <see cref="!:System.Net.WebException.Message" /> property of the new instance using <paramref name="message" /> and <see cref="P:System.Net.WebException.Status" /> using <paramref name="status" />. If <paramref name="message" /> is <see langword="null" />, 
   the <see cref="!:System.Net.WebException.Message" /> property is initialized to the system-supplied
   message provided by the constructor that takes no arguments.</para>
          <para> The <see cref="!:System.Net.WebException.InnerException" /> and <see cref="P:System.Net.WebException.Response" /> properties of the new
instance are initialized to <see langword="null" />.</para>
        </remarks>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
    <Member MemberName=".ctor">
      <MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor(string message, class System.Exception innerException, valuetype System.Net.WebExceptionStatus status, class System.Net.WebResponse response)" />
      <MemberSignature Language="C#" Value="public WebException (string message, Exception innerException, System.Net.WebExceptionStatus status, System.Net.WebResponse response);" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string message, class System.Exception innerException, valuetype System.Net.WebExceptionStatus status, class System.Net.WebResponse response) cil managed" />
      <MemberType>Constructor</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyVersion>4.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue />
      <Parameters>
        <Parameter Name="message" Type="System.String" />
        <Parameter Name="innerException" Type="System.Exception" />
        <Parameter Name="status" Type="System.Net.WebExceptionStatus" />
        <Parameter Name="response" Type="System.Net.WebResponse" />
      </Parameters>
      <Docs>
        <param name="message">A <see cref="T:System.String" /> that describes the error. The content of <paramref name="message" /> is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param>
        <param name="innerException">An instance of <see cref="T:System.Exception" /> that is the cause of the current exception. If <paramref name="innerException" /> is non-null, then the current Exception was raised in a catch block handling <paramref name="innerException" /> .</param>
        <param name="status">A <see cref="T:System.Net.WebExceptionStatus" /> value that describes the status of the network connection after the exception is thrown.</param>
        <param name="response">A <see cref="T:System.Net.WebResponse" /> instance containing the response from the host.</param>
        <summary>
          <para>Constructs and initializes a new instance of the <see cref="T:System.Net.WebException" /> class with the specified error
   message, nested exception, status, and response.</para>
        </summary>
        <remarks>
          <para>This constructor initializes the <see cref="!:System.Net.WebException.Message" /> property of the new instance using
<paramref name="message, " />the <see cref="P:System.Net.WebException.Status" /> 
property using <paramref name="status" />, the <see cref="!:System.Net.WebException.InnerException" /> property using <paramref name="innerException" />,
and the <see cref="P:System.Net.WebException.Response" /> property
using <paramref name="response" />. If <paramref name="message" /> is <see langword="null" />,
the <see cref="!:System.Net.WebException.Message" /> property is initialized to the system-supplied
message provided by the constructor that takes no arguments.</para>
        </remarks>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
    <Member MemberName="GetObjectData">
      <MemberSignature Language="C#" Value="public override void GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance void GetObjectData(class System.Runtime.Serialization.SerializationInfo serializationInfo, valuetype System.Runtime.Serialization.StreamingContext streamingContext) cil managed" />
      <MemberType>Method</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyVersion>4.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.Void</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="serializationInfo" Type="System.Runtime.Serialization.SerializationInfo" />
        <Parameter Name="streamingContext" Type="System.Runtime.Serialization.StreamingContext" />
      </Parameters>
      <Docs>
        <param name="serializationInfo">To be added.</param>
        <param name="streamingContext">To be added.</param>
        <summary>To be added.</summary>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="Response">
      <MemberSignature Language="ILASM" Value=".property class System.Net.WebResponse Response { public hidebysig specialname instance class System.Net.WebResponse get_Response() }" />
      <MemberSignature Language="C#" Value="public System.Net.WebResponse Response { get; }" />
      <MemberSignature Language="ILAsm" Value=".property instance class System.Net.WebResponse Response" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyVersion>4.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.Net.WebResponse</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        <summary>
          <para> Gets the <see cref="T:System.Net.WebResponse" /> that the host returned.</para>
        </summary>
        <value>
          <para> A <see cref="T:System.Net.WebResponse" /> instance containing the
   error response if one is available; otherwise, <see langword="null" />
   .</para>
        </value>
        <remarks>
          <para>This property is read-only.</para>
          <para>
            <block subset="none" type="note">Some Internet protocols, such as HTTP, return otherwise
      valid responses indicating that an error has occurred at the protocol level.
      When the response to an Internet request indicates an error, <see cref="M:System.Net.WebRequest.GetResponse" qualify="true" />
      sets the <see cref="P:System.Net.WebException.Status" />
      property to <see cref="F:System.Net.WebExceptionStatus.ProtocolError" qualify="true" /> and
      provides
      the <see cref="T:System.Net.WebResponse" /> containing the error message in the
   <see cref="P:System.Net.WebException.Response" /> property of the <see cref="T:System.Net.WebException" />
   that was
   thrown. The <see cref="T:System.Net.WebResponse" /> can be examined to
   determine the actual error.</block>
          </para>
        </remarks>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
    <Member MemberName="Status">
      <MemberSignature Language="ILASM" Value=".property valuetype System.Net.WebExceptionStatus Status { public hidebysig specialname instance valuetype System.Net.WebExceptionStatus get_Status() }" />
      <MemberSignature Language="C#" Value="public System.Net.WebExceptionStatus Status { get; }" />
      <MemberSignature Language="ILAsm" Value=".property instance valuetype System.Net.WebExceptionStatus Status" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyVersion>4.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.Net.WebExceptionStatus</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        <summary>
          <para> Gets a value that indicates the status of the response.
      </para>
        </summary>
        <value>
          <para> A <see cref="T:System.Net.WebExceptionStatus" /> value that indicates the status of the
   response.</para>
        </value>
        <remarks>
          <para>This property is read-only.</para>
          <para>The <see cref="P:System.Net.WebException.Status" /> property indicates the reason for the current 
   exception.</para>
          <para>The default value for this property is <see cref="F:System.Net.WebExceptionStatus.UnknownError" />.</para>
        </remarks>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
    <Member MemberName="System.Runtime.Serialization.ISerializable.GetObjectData">
      <MemberSignature Language="C#" Value="void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);" />
      <MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Runtime.Serialization.ISerializable.GetObjectData(class System.Runtime.Serialization.SerializationInfo info, valuetype System.Runtime.Serialization.StreamingContext context) cil managed" />
      <MemberType>Method</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyVersion>4.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.Void</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="info" Type="System.Runtime.Serialization.SerializationInfo" />
        <Parameter Name="context" Type="System.Runtime.Serialization.StreamingContext" />
      </Parameters>
      <Docs>
        <param name="info">To be added.</param>
        <param name="context">To be added.</param>
        <summary>To be added.</summary>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
  </Members>
  <TypeExcluded>0</TypeExcluded>
</Type>
