Op Englesch liesen Editéieren

Deelen iwwer


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.

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

Applies to

.NET 10 an aner Versiounen
Produkt Versiounen (Obsolet)
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1 (5, 6, 7, 8, 9, 10)
.NET Framework (4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)
.NET Standard 2.1

HttpWebResponse(SerializationInfo, StreamingContext)

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

Caution

Serialization has been deprecated for HttpWebResponse.

Caution

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

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.

C#
[System.Obsolete("Serialization has been deprecated for HttpWebResponse.")]
protected HttpWebResponse(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
C#
[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);
C#
[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);
C#
protected HttpWebResponse(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext 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

.NET 10 an aner Versiounen
Produkt Versiounen (Obsolet)
.NET (Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10)
.NET Framework 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)
.NET Standard (2.0, 2.1)