HttpWebRequest Oluşturucular
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
HttpWebRequest sınıfının yeni bir örneğini başlatır. Bu oluşturucular eski; ayrıntılar için Açıklamalar bölümüne bakın.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| HttpWebRequest() |
Geçersiz.
Geçersiz.
HttpWebRequest sınıfının yeni bir örneğini başlatır. Bu oluşturucu kullanımdan kaldırıldı. |
| HttpWebRequest(SerializationInfo, StreamingContext) |
Geçersiz.
Geçersiz.
Geçersiz.
Geçersiz.
ve HttpWebRequest sınıflarının SerializationInfo belirtilen örneklerinden StreamingContext sınıfının yeni bir örneğini başlatır. Bu oluşturucu kullanımdan kaldırıldı. |
Açıklamalar
Caution
WebRequest, HttpWebRequest, ServicePointve WebClient kullanım dışıdır ve bunları yeni geliştirme için kullanmamalısınız. Bunun yerine HttpClient kullanın.
Her iki HttpWebRequest oluşturucu da kullanım dışıdır ve kullanılmamalıdır. WebRequest.CreateHttp Yeni HttpWebRequest nesneleri başlatmak için yöntemini çağırın.
HttpWebRequest()
Dikkat
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Dikkat
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
HttpWebRequest sınıfının yeni bir örneğini başlatır. Bu oluşturucu kullanımdan kaldırıldı.
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 ()
- Öznitelikler
Şunlara uygulanır
HttpWebRequest(SerializationInfo, StreamingContext)
- Kaynak:
- HttpWebRequest.cs
- Kaynak:
- HttpWebRequest.cs
- Kaynak:
- HttpWebRequest.cs
- Kaynak:
- HttpWebRequest.cs
- Kaynak:
- HttpWebRequest.cs
Dikkat
WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.
Dikkat
Serialization is obsoleted for this type. https://go.microsoft.com/fwlink/?linkid=14202
Dikkat
WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead
Dikkat
Serialization is obsoleted for this type. http://go.microsoft.com/fwlink/?linkid=14202
ve HttpWebRequest sınıflarının SerializationInfo belirtilen örneklerinden StreamingContext sınıfının yeni bir örneğini başlatır. Bu oluşturucu kullanımdan kaldırıldı.
protected:
HttpWebRequest(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
[System.Obsolete("WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.", DiagnosticId="SYSLIB0014", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
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);
[System.Obsolete("WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead", DiagnosticId="SYSLIB0014", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
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);
protected HttpWebRequest(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[<System.Obsolete("WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.", DiagnosticId="SYSLIB0014", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
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
[<System.Obsolete("WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead", DiagnosticId="SYSLIB0014", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
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
new System.Net.HttpWebRequest : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpWebRequest
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)
Parametreler
- serializationInfo
- SerializationInfo
SerializationInfo Yeni HttpWebRequest nesneyi seri hale getirmek için gereken bilgileri içeren bir nesne.
- streamingContext
- StreamingContext
StreamingContext Yeni HttpWebRequest nesneyle ilişkilendirilmiş serileştirilmiş akışın kaynağını ve hedefini içeren nesne.
- Öznitelikler
Açıklamalar
Serileştirme kullanılırken uygulamanın tam güven modunda çalışması gerekir.