共用方式為


OutgoingWebResponseContext.StatusCode 屬性

定義

取得或設定傳出 Web 回應的狀態碼。

public:
 property System::Net::HttpStatusCode StatusCode { System::Net::HttpStatusCode get(); void set(System::Net::HttpStatusCode value); };
public System.Net.HttpStatusCode StatusCode { get; set; }
member this.StatusCode : System.Net.HttpStatusCode with get, set
Public Property StatusCode As HttpStatusCode

屬性值

HttpStatusCode

HttpStatusCode 執行個體包含傳出的 Web 回應之狀態碼。

適用於