ApiResponseType.IsDefaultResponse Property

Definition

Gets or sets a value indicating whether the response type represents a default response.

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

Property Value

Remarks

If an ApiDescription has a default response, then the StatusCode property should be ignored. This response will be used when a more specific response format does not apply. The common use of a default response is to specify the format for communicating error conditions.

Applies to