HttpWebRequest 생성자

정의

HttpWebRequest 클래스의 새 인스턴스를 초기화합니다. 이러한 생성자는 사용되지 않습니다. 자세한 내용은 설명 섹션을 참조하세요.

오버로드

Name Description
HttpWebRequest()
사용되지 않음.
사용되지 않음.

HttpWebRequest 클래스의 새 인스턴스를 초기화합니다. 이 생성자는 사용되지 않습니다.

HttpWebRequest(SerializationInfo, StreamingContext)
사용되지 않음.
사용되지 않음.

지정된 클래스 인스턴스에서 클래스의 HttpWebRequest 새 인스턴스를 SerializationInfoStreamingContext 초기화합니다. 이 생성자는 사용되지 않습니다.

설명

Caution

WebRequest, HttpWebRequest, ServicePointWebClient 사용되지 않으므로 새 개발에 사용하면 안 됩니다. HttpClient를 대신 사용하세요.

두 생성자 모두 HttpWebRequest 사용되지 않으므로 사용하면 안 됩니다. 메서드를 WebRequest.CreateHttp 호출하여 새 HttpWebRequest 개체를 초기화합니다.

HttpWebRequest()

주의

This API supports the .NET Framework 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.

HttpWebRequest 클래스의 새 인스턴스를 초기화합니다. 이 생성자는 사용되지 않습니다.

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 ()
특성

적용 대상

HttpWebRequest(SerializationInfo, StreamingContext)

주의

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

주의

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

지정된 클래스 인스턴스에서 클래스의 HttpWebRequest 새 인스턴스를 SerializationInfoStreamingContext 초기화합니다. 이 생성자는 사용되지 않습니다.

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)

매개 변수

serializationInfo
SerializationInfo

SerializationInfoHttpWebRequest 개체를 serialize하는 데 필요한 정보가 들어 있는 개체입니다.

streamingContext
StreamingContext

StreamingContextHttpWebRequest 개체와 연결된 serialize된 스트림의 원본 및 대상을 포함하는 개체입니다.

특성

설명

serialization을 사용하는 경우 애플리케이션이 완전 신뢰 모드로 실행되어야 합니다.

추가 정보

적용 대상