HttpResponseMessage.IsSuccessStatusCode HttpResponseMessage.IsSuccessStatusCode HttpResponseMessage.IsSuccessStatusCode HttpResponseMessage.IsSuccessStatusCode Property

定义

获取一个值,该值指示 HTTP 响应是否成功。Gets a value that indicates if the HTTP response was successful.

public:
 property bool IsSuccessStatusCode { bool get(); };
public bool IsSuccessStatusCode { get; }
member this.IsSuccessStatusCode : bool
Public ReadOnly Property IsSuccessStatusCode As Boolean

属性值

true 如果StatusCode已在范围内 200-299; 否则为falsetrue if StatusCode was in the range 200-299; otherwise, false.

适用于