Share via


HttpResponseMessageProperty.StatusDescription プロパティ

定義

このプロパティが添付される現在の HTTP 応答のステータス コードの説明を取得または設定します。

public:
 property System::String ^ StatusDescription { System::String ^ get(); void set(System::String ^ value); };
public string StatusDescription { get; set; }
member this.StatusDescription : string with get, set
Public Property StatusDescription As String

プロパティ値

HTTP 応答で送信する StatusDescription を返します。

次の例では、このプロパティが添付される現在の HTTP 応答のステータス コードの説明を取得する方法を示します。

string statusDescription =
responseProperty.StatusDescription;

注釈

このプロパティは、返されるステータス コードのユーザー フレンドリな説明を提供します。

適用対象