共用方式為


PageRouteTransformerConvention.ShouldApply(PageRouteModel) 方法

定義

呼叫 以判斷此慣例是否應該套用。

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

參數

action
PageRouteModel

有問題的動作。

傳回

是否應套用此慣例。

適用於