HttpWebResponse Конструкторы

Определение

Инициализирует новый экземпляр класса HttpWebResponse.

Перегрузки

HttpWebResponse()
Является устаревшей.
Является устаревшей.
Является устаревшей.
Является устаревшей.

Инициализирует новый экземпляр класса HttpWebResponse.

HttpWebResponse(SerializationInfo, StreamingContext)
Является устаревшей.
Является устаревшей.
Является устаревшей.
Является устаревшей.

Инициализирует новый экземпляр класса HttpWebResponse из указанных экземпляров SerializationInfo и 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

Инициализирует новый экземпляр класса HttpWebResponse из указанных экземпляров SerializationInfo и 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 класса.

См. также раздел

Применяется к