Share via


HttpWebResponse Konstruktor

Definisi

Menginisialisasi instans baru kelas HttpWebResponse.

Overload

HttpWebResponse()
Kedaluwarsa.
Kedaluwarsa.
Kedaluwarsa.
Kedaluwarsa.

Menginisialisasi instans baru kelas HttpWebResponse.

HttpWebResponse(SerializationInfo, StreamingContext)
Kedaluwarsa.
Kedaluwarsa.
Kedaluwarsa.

Menginisialisasi instans HttpWebResponse baru kelas dari instans dan StreamingContext yang ditentukanSerializationInfo.

HttpWebResponse()

Sumber:
HttpWebResponse.cs
Sumber:
HttpWebResponse.cs
Sumber:
HttpWebResponse.cs

Perhatian

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

Perhatian

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

Perhatian

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

Perhatian

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

Menginisialisasi instans baru kelas HttpWebResponse.

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

Berlaku untuk

HttpWebResponse(SerializationInfo, StreamingContext)

Sumber:
HttpWebResponse.cs
Sumber:
HttpWebResponse.cs
Sumber:
HttpWebResponse.cs

Perhatian

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

Perhatian

Serialization has been deprecated for HttpWebResponse.

Perhatian

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

Menginisialisasi instans HttpWebResponse baru kelas dari instans dan StreamingContext yang ditentukanSerializationInfo.

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)

Parameter

serializationInfo
SerializationInfo

SerializationInfo yang berisi informasi yang diperlukan untuk membuat serialisasi baruHttpWebRequest.

streamingContext
StreamingContext

StreamingContext yang berisi sumber aliran berseri yang terkait dengan yang baruHttpWebRequest.

Atribut

Keterangan

Konstruktor ini mengimplementasikan ISerializable antarmuka untuk HttpWebRequest kelas .

Lihat juga

Berlaku untuk