ApiConventionApplicationModelConvention Class    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An IActionModelConvention that discovers
- ApiConventionResult from applied ApiConventionTypeAttribute or ApiConventionMethodAttribute.
- ProducesErrorResponseTypeAttribute that applies to the action.
public ref class ApiConventionApplicationModelConvention : Microsoft::AspNetCore::Mvc::ApplicationModels::IActionModelConventionpublic class ApiConventionApplicationModelConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IActionModelConventiontype ApiConventionApplicationModelConvention = class
    interface IActionModelConventionPublic 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  |