共用方式為


HttpResponseMessage.StatusCode 屬性

定義

取得或設定 HTTP 回應的狀態碼。

public:
 property System::Net::HttpStatusCode StatusCode { System::Net::HttpStatusCode get(); void set(System::Net::HttpStatusCode value); };
public System.Net.HttpStatusCode StatusCode { get; set; }
member this.StatusCode : System.Net.HttpStatusCode with get, set
Public Property StatusCode As HttpStatusCode

屬性值

HTTP 回應的狀態碼。

適用於