共用方式為


WebFaultException<T>.StatusCode 屬性

定義

取得與錯誤相關聯的 HttpStatusCode

public:
 property System::Net::HttpStatusCode StatusCode { System::Net::HttpStatusCode get(); };
public System.Net.HttpStatusCode StatusCode { get; }
member this.StatusCode : System.Net.HttpStatusCode
Public ReadOnly Property StatusCode As HttpStatusCode

屬性值

HttpStatusCode

與錯誤相關聯的 HTTP 狀態碼。

適用於