Share via


ApiConventionApplicationModelConvention Class

Definition

public ref class ApiConventionApplicationModelConvention : Microsoft::AspNetCore::Mvc::ApplicationModels::IActionModelConvention
public class ApiConventionApplicationModelConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IActionModelConvention
type ApiConventionApplicationModelConvention = class
    interface IActionModelConvention
Public Class ApiConventionApplicationModelConvention
Implements IActionModelConvention
Inheritance
ApiConventionApplicationModelConvention
Implements

Constructors

ApiConventionApplicationModelConvention(ProducesErrorResponseTypeAttribute)

Initializes a new instance of ApiConventionApplicationModelConvention.

Properties

DefaultErrorResponseType

Gets the default ProducesErrorResponseTypeAttribute that is associated with an action when no attribute is discovered.

Methods

Apply(ActionModel)

Called to apply the convention to the ActionModel.

ShouldApply(ActionModel)

Determines if this instance of IActionModelConvention applies to a specified action.

Applies to