HttpResponse.Status 屬性

定義

設定 Status 回傳給客戶端的行。

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

屬性值

設定狀態碼會讓一個描述 HTTP 輸出狀態的字串回傳給用戶端。 預設值是 200(OK)。

例外狀況

狀態被設定為無效狀態碼。

備註

Status 已被棄用,取而代之的是 , StatusDescription 僅提供與早期版本 ASP 相容性。 ASP.NET 時,改用 StatusDescription

適用於