語言

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

屬性值

回傳 以 StatusDescription 發送 HTTP 回應。

範例

此說明如何取得該屬性所附加的當前 HTTP 回應狀態碼描述:

string statusDescription =
responseProperty.StatusDescription;

備註

此特性提供使用者友善的回傳狀態碼描述。

適用於