HttpWebResponse Konstruktorer

Definition

Initierar en ny instans av HttpWebResponse klassen.

Överlagringar

Name Description
HttpWebResponse()
Föråldrad.
Föråldrad.
Föråldrad.
Föråldrad.

Initierar en ny instans av HttpWebResponse klassen.

HttpWebResponse(SerializationInfo, StreamingContext)
Föråldrad.
Föråldrad.

Initierar en ny instans av HttpWebResponse klassen från angivna SerializationInfo instanser och StreamingContext instanser.

HttpWebResponse()

Varning

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

Varning

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

Varning

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

Varning

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

Initierar en ny instans av HttpWebResponse klassen.

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 HttpWebResponse();
Public Sub New ()
Attribut

Gäller för

HttpWebResponse(SerializationInfo, StreamingContext)

Varning

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

Varning

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

Initierar en ny instans av HttpWebResponse klassen från angivna SerializationInfo instanser och StreamingContext instanser.

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.  http://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.  https://go.microsoft.com/fwlink/?linkid=14202")]
protected HttpWebResponse(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
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
[<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
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Parametrar

serializationInfo
SerializationInfo

A SerializationInfo som innehåller den information som krävs för att serialisera den nya HttpWebRequest.

streamingContext
StreamingContext

En StreamingContext som innehåller källan till den serialiserade dataström som är associerad med den nya HttpWebRequest.

Attribut

Kommentarer

Den här konstruktorn implementerar ISerializable gränssnittet för HttpWebRequest klassen.

Se även

Gäller för