HttpWebResponse 建構函式

定義

初始化 HttpWebResponse 類別的新執行個體。

多載

HttpWebResponse()
已過時。
已過時。
已過時。
已過時。

初始化 HttpWebResponse 類別的新執行個體。

HttpWebResponse(SerializationInfo, StreamingContext)
已過時。
已過時。
已過時。
已過時。

從指定的 HttpWebResponseSerializationInfo 執行個體,初始化 StreamingContext 類別的新執行個體。

HttpWebResponse()

警告

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

警告

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

警告

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

警告

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

初始化 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 ();
Public Sub New ()
屬性

適用於

HttpWebResponse(SerializationInfo, StreamingContext)

警告

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

警告

Serialization has been deprecated for HttpWebResponse.

警告

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

警告

Serialization is obsoleted for this type

從指定的 HttpWebResponseSerializationInfo 執行個體,初始化 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")]
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", false)]
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
[<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)

參數

serializationInfo
SerializationInfo

SerializationInfo,包含序列化新 HttpWebRequest 所需的資訊。

streamingContext
StreamingContext

StreamingContext,包含與新 HttpWebRequest 關聯之序列化資料流的來源。

屬性

備註

這個建構函式會 ISerializable 實作 類別的 HttpWebRequest 介面。

另請參閱

適用於