Bagikan melalui


HttpResponseMessage Konstruktor

Definisi

Menginisialisasi instans baru kelas HttpResponseMessage.

Overload

HttpResponseMessage()

Menginisialisasi instans baru kelas HttpResponseMessage.

HttpResponseMessage(HttpStatusCode)

Menginisialisasi instans HttpResponseMessage baru kelas dengan .StatusCode

Keterangan

Cara umum untuk mendapatkan HttpResponseMessage adalah dari salah HttpClient.SendAsync(HttpRequestMessage) satu metode.

HttpResponseMessage()

Sumber:
HttpResponseMessage.cs
Sumber:
HttpResponseMessage.cs
Sumber:
HttpResponseMessage.cs

Menginisialisasi instans baru kelas HttpResponseMessage.

public:
 HttpResponseMessage();
public HttpResponseMessage ();
Public Sub New ()

Berlaku untuk

HttpResponseMessage(HttpStatusCode)

Sumber:
HttpResponseMessage.cs
Sumber:
HttpResponseMessage.cs
Sumber:
HttpResponseMessage.cs

Menginisialisasi instans HttpResponseMessage baru kelas dengan .StatusCode

public:
 HttpResponseMessage(System::Net::HttpStatusCode statusCode);
public HttpResponseMessage (System.Net.HttpStatusCode statusCode);
new System.Net.Http.HttpResponseMessage : System.Net.HttpStatusCode -> System.Net.Http.HttpResponseMessage
Public Sub New (statusCode As HttpStatusCode)

Parameter

statusCode
HttpStatusCode

Kode status respons HTTP.

Berlaku untuk