HttpResponseMessage.IsSuccessStatusCode プロパティ

定義

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

プロパティ値

Boolean

trueStatusCodeが200-299 の範囲内にある場合は。それ以外の場合は falsetrue if StatusCode was in the range 200-299; otherwise, false.

適用対象