ApiConventionApplicationModelConvention 类

定义

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
继承
ApiConventionApplicationModelConvention
实现

构造函数

ApiConventionApplicationModelConvention(ProducesErrorResponseTypeAttribute)

初始化 ApiConventionApplicationModelConvention 的新实例。

属性

DefaultErrorResponseType

获取未发现任何属性时与操作关联的默认值 ProducesErrorResponseTypeAttribute

方法

Apply(ActionModel)

调用 以将约定应用于 ActionModel

ShouldApply(ActionModel)

确定 的此实例 IActionModelConvention 是否适用于指定的 action

适用于