HttpWebResponse HttpWebResponse HttpWebResponse HttpWebResponse Constructors

Definition

Overloads

HttpWebResponse() HttpWebResponse() HttpWebResponse()

Initializes a new instance of the HttpWebResponse class.

HttpWebResponse(SerializationInfo, StreamingContext) HttpWebResponse(SerializationInfo, StreamingContext) HttpWebResponse(SerializationInfo, StreamingContext)

Initializes a new instance of the HttpWebResponse class from the specified SerializationInfo and StreamingContext instances.

HttpWebResponse() HttpWebResponse() HttpWebResponse()

Warning

This API is now obsolete.

Initializes a new instance of the HttpWebResponse class.

public:
 HttpWebResponse();
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public HttpWebResponse ();
Public Sub New ()

HttpWebResponse(SerializationInfo, StreamingContext) HttpWebResponse(SerializationInfo, StreamingContext) HttpWebResponse(SerializationInfo, StreamingContext)

Warning

This API is now obsolete.

Initializes a new instance of the HttpWebResponse class from the specified SerializationInfo and StreamingContext instances.

protected:
 HttpWebResponse(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
[System.Obsolete("Serialization is obsoleted for this type", false)]
[System.Obsolete("Serialization is obsoleted for this type.  http://go.microsoft.com/fwlink/?linkid=14202")]
[System.Obsolete("Serialization is obsoleted for this type.  https://go.microsoft.com/fwlink/?linkid=14202")]
protected HttpWebResponse (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Net.HttpWebResponse : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpWebResponse

Parameters

serializationInfo
SerializationInfo SerializationInfo SerializationInfo SerializationInfo

A SerializationInfo that contains the information required to serialize the new HttpWebRequest.

streamingContext
StreamingContext StreamingContext StreamingContext StreamingContext

A StreamingContext that contains the source of the serialized stream that is associated with the new HttpWebRequest.

Remarks

This constructor implements the ISerializable interface for the HttpWebRequest class.

See also

Applies to