Redigera

Dela via


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()

Source:
HttpWebResponse.cs
Source:
HttpWebResponse.cs
Source:
HttpWebResponse.cs

Caution

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

Caution

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

Caution

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

Caution

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 ();
[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 ();
[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

Applies to

HttpWebResponse(SerializationInfo, StreamingContext)

Source:
HttpWebResponse.cs
Source:
HttpWebResponse.cs
Source:
HttpWebResponse.cs

Caution

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

Caution

Serialization has been deprecated for HttpWebResponse.

Caution

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

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.  https://go.microsoft.com/fwlink/?linkid=14202")]
protected HttpWebResponse (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("Serialization has been deprecated for HttpWebResponse.")]
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);
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")>]
new System.Net.HttpWebResponse : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpWebResponse
[<System.Obsolete("Serialization has been deprecated for HttpWebResponse.")>]
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
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