ApiConventionApplicationModelConvention.ShouldApply(ActionModel) 方法

定义

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

protected:
 virtual bool ShouldApply(Microsoft::AspNetCore::Mvc::ApplicationModels::ActionModel ^ action);
protected virtual bool ShouldApply (Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action);
abstract member ShouldApply : Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel -> bool
override this.ShouldApply : Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel -> bool
Protected Overridable Function ShouldApply (action As ActionModel) As Boolean

参数

返回

true 如果约定适用,则为 ;否则为 false。 派生类型可以重写此方法,以便有选择地应用此约定。

适用于