ApiResponseType.IsDefaultResponse 属性

定义

获取或设置一个值,该值指示响应类型是否表示默认响应。

public:
 property bool IsDefaultResponse { bool get(); void set(bool value); };
public bool IsDefaultResponse { get; set; }
member this.IsDefaultResponse : bool with get, set
Public Property IsDefaultResponse As Boolean

属性值

注解

ApiDescription如果 具有默认响应,则应StatusCode忽略 属性。 当更具体的响应格式不适用时,将使用此响应。 默认响应的常见用途是指定用于传达错误条件的格式。

适用于