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

屬性值

String

傳回要在 HTTP 回應上傳送的 StatusDescription

範例

以下會示範如何取得目前附加此屬性之 HTTP 回應的狀態碼說明:

string statusDescription =
responseProperty.StatusDescription;

備註

這個屬性會提供傳回之狀態碼的使用者易記說明。

適用於