HttpResponseMessage.IsSuccessStatusCode プロパティ

定義

HTTP 応答が成功したかどうかを示す値を取得します。

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

プロパティ値

true StatusCodeが 200 から 299 の範囲であった場合は ,。それ以外の場合はfalse

適用対象