共用方式為


ProducesResponseTypeAttribute.StatusCode 屬性

定義

取得或設定回應的 HTTP 狀態碼。

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

屬性值

適用於