HttpWebResponse 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 HttpWebResponse 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| HttpWebResponse() |
已过时.
已过时.
已过时.
已过时.
初始化 HttpWebResponse 类的新实例。 |
| HttpWebResponse(SerializationInfo, StreamingContext) |
已过时.
已过时.
已过时.
从指定HttpWebResponse实例和SerializationInfo实例初始化类的新实例StreamingContext。 |
HttpWebResponse()
- Source:
- HttpWebResponse.cs
- Source:
- HttpWebResponse.cs
- Source:
- HttpWebResponse.cs
- Source:
- HttpWebResponse.cs
- Source:
- 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)
- Source:
- HttpWebResponse.cs
- Source:
- HttpWebResponse.cs
- Source:
- HttpWebResponse.cs
- Source:
- HttpWebResponse.cs
- Source:
- 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
从指定HttpWebResponse实例和SerializationInfo实例初始化类的新实例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 包含序列化新 HttpWebRequest项所需的信息。
- streamingContext
- StreamingContext
一个 StreamingContext 包含与新 HttpWebRequest流关联的序列化流的源。
- 属性
注解
此构造函数实现 ISerializable 类的 HttpWebRequest 接口。