IHttpResponseFeature.StatusCode 属性

定义

获取或设置 RFC 7230 中定义的状态代码。

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

属性值

默认为 200

适用于