HttpResponse.Status 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定 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。