Freigeben über


HttpResponseMessage.StatusCode Eigenschaft

Definition

Ruft den Statuscode der HTTP-Antwort ab oder legt ihn fest.

public:
 property HttpStatusCode StatusCode { HttpStatusCode get(); void set(HttpStatusCode value); };
HttpStatusCode StatusCode();

void StatusCode(HttpStatusCode value);
public HttpStatusCode StatusCode { get; set; }
var httpStatusCode = httpResponseMessage.statusCode;
httpResponseMessage.statusCode = httpStatusCode;
Public Property StatusCode As HttpStatusCode

Eigenschaftswert

Der Statuscode der HTTP-Antwort.

Gilt für:

Weitere Informationen