HttpResponseMessage.StatusCode 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 HTTP 回應的狀態碼。
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
屬性值
HTTP 回應的狀態碼。