HttpWebRequest Konstruktorok

Definíció

Inicializálja a HttpWebRequest osztály új példányát. Ezek a konstruktorok elavultak; részletekért tekintse meg a Megjegyzések szakaszt.

Túlterhelések

Name Description
HttpWebRequest()
Elavult.
Elavult.

Inicializálja a HttpWebRequest osztály új példányát. Ez a konstruktor elavult.

HttpWebRequest(SerializationInfo, StreamingContext)
Elavult.
Elavult.

Inicializálja az HttpWebRequest osztály új példányát az és StreamingContext az SerializationInfo osztályok megadott példányaiból. Ez a konstruktor elavult.

Megjegyzések

Caution

WebRequest, HttpWebRequest, ServicePointés WebClient elavultak, és nem szabad új fejlesztésre használni őket. A HttpClient használható helyette.

Mindkét HttpWebRequest konstruktor elavult, ezért nem szabad használni. Új objektumok inicializálásához HttpWebRequest hívja meg a WebRequest.CreateHttp metódust.

HttpWebRequest()

Figyelemfelhívás

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

Figyelemfelhívás

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

Inicializálja a HttpWebRequest osztály új példányát. Ez a konstruktor elavult.

public:
 HttpWebRequest();
[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 HttpWebRequest();
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public HttpWebRequest();
Public Sub New ()
Attribútumok

A következőre érvényes:

HttpWebRequest(SerializationInfo, StreamingContext)

Figyelemfelhívás

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

Figyelemfelhívás

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

Inicializálja az HttpWebRequest osztály új példányát az és StreamingContext az SerializationInfo osztályok megadott példányaiból. Ez a konstruktor elavult.

protected:
 HttpWebRequest(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected HttpWebRequest(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 HttpWebRequest(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 HttpWebRequest(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Net.HttpWebRequest : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpWebRequest
[<System.Obsolete("Serialization is obsoleted for this type.  http://go.microsoft.com/fwlink/?linkid=14202")>]
new System.Net.HttpWebRequest : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpWebRequest
[<System.Obsolete("Serialization is obsoleted for this type.  https://go.microsoft.com/fwlink/?linkid=14202")>]
new System.Net.HttpWebRequest : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpWebRequest
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Paraméterek

serializationInfo
SerializationInfo

Az SerializationInfo új HttpWebRequest objektum szerializálásához szükséges információkat tartalmazó objektum.

streamingContext
StreamingContext

Az StreamingContext új HttpWebRequest objektumhoz társított szerializált stream forrását és célját tartalmazó objektum.

Attribútumok

Megjegyzések

Az alkalmazásoknak teljes megbízhatósági módban kell futniuk szerializálás használatakor.

Lásd még

A következőre érvényes: