WebFaultException.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 状态代码。

适用于