HttpWebResponse Constructors

Definition

Initializes a new instance of the HttpWebResponse class.

Overloads

HttpWebResponse()
Obsolete.
Obsolete.
Obsolete.
Obsolete.

Initializes a new instance of the HttpWebResponse class.

HttpWebResponse(SerializationInfo, StreamingContext)
Obsolete.
Obsolete.
Obsolete.

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

HttpWebResponse()

Warning: Obsolete

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Warning: Obsolete

This API supports the .NET infrastructure and is not intended to be used directly from your code.

Warning: Obsolete

This API supports the .NET infrastructure and is not intended to be used directly from your code.

Warning: Obsolete

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the HttpWebResponse class.

public:
 HttpWebResponse();
[System.Obsolete("This API supports the .NET infrastructure and is not intended to be used directly from your code.", true)]
[System.Obsolete("This API supports the .NET infrastructure and is not intended to be used directly from your code.", true)]
public HttpWebResponse ();
public HttpWebResponse ();
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
[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 ()
Attributes

HttpWebResponse(SerializationInfo, StreamingContext)

Warning: Obsolete

Serialization is obsoleted for this type. http://go.microsoft.com/fwlink/?linkid=14202

Warning: Obsolete

Serialization is obsoleted for this type. https://go.microsoft.com/fwlink/?linkid=14202

Warning: Obsolete

Serialization is obsoleted for this type

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);
protected HttpWebResponse (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("Serialization is obsoleted for this type.  http://go.microsoft.com/fwlink/?linkid=14202")]
protected HttpWebResponse (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[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);
[System.Obsolete("Serialization is obsoleted for this type", false)]
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
[<System.Obsolete("Serialization is obsoleted for this type.  http://go.microsoft.com/fwlink/?linkid=14202")>]
new System.Net.HttpWebResponse : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpWebResponse
[<System.Obsolete("Serialization is obsoleted for this type.  https://go.microsoft.com/fwlink/?linkid=14202")>]
new System.Net.HttpWebResponse : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpWebResponse
[<System.Obsolete("Serialization is obsoleted for this type", false)>]
new System.Net.HttpWebResponse : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpWebResponse
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Parameters

serializationInfo
SerializationInfo

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

streamingContext
StreamingContext

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

Attributes

Remarks

This constructor implements the ISerializable interface for the HttpWebRequest class.

See also

Applies to