语言

HttpResponseMock.StatusCode 属性

定义

获取或设置状态码。

public System.Net.HttpStatusCode StatusCode { get; set; }
member this.StatusCode : System.Net.HttpStatusCode with get, set
Public Property StatusCode As HttpStatusCode

属性值

状态代码。 默认值还行(200)。

适用于