HttpResponseMessage.StatusCode HttpResponseMessage.StatusCode HttpResponseMessage.StatusCode HttpResponseMessage.StatusCode Property

定义

获取或设置 HTTP 响应的状态代码。Gets or sets the status code of the HTTP response.

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 响应的状态代码。The status code of the HTTP response.

适用于