HttpWebResponse 建構函式

定義

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

多載

名稱 Description
HttpWebResponse()
已淘汰.
已淘汰.
已淘汰.
已淘汰.

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

HttpWebResponse(SerializationInfo, StreamingContext)
已淘汰.
已淘汰.
已淘汰.

從指定的 HttpWebResponseSerializationInfo 實例中初始化該類別的新實例StreamingContext

HttpWebResponse()

來源:
HttpWebResponse.cs
來源:
HttpWebResponse.cs
來源:
HttpWebResponse.cs
來源:
HttpWebResponse.cs
來源:
HttpWebResponse.cs

警告

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

來源:
HttpWebResponse.cs
來源:
HttpWebResponse.cs
來源:
HttpWebResponse.cs
來源:
HttpWebResponse.cs
來源:
HttpWebResponse.cs

警告

Serialization has been deprecated for HttpWebResponse.

警告

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

警告

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

從指定的 HttpWebResponseSerializationInfo 實例中初始化該類別的新實例StreamingContext

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

參數

serializationInfo
SerializationInfo

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

streamingContext
StreamingContext

A StreamingContext 包含與新 HttpWebRequest關聯的序列化串流來源。

屬性

備註

此建構子實 ISerializable 作該類別的 HttpWebRequest 介面。

另請參閱

適用於