PageConventionCollectionExtensions.Add 方法

定义

将指定的 convention 添加到 conventions。 添加的约定将应用于处理程序方法上的所有处理程序属性和参数。

public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection Add (this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, Microsoft.AspNetCore.Mvc.ApplicationModels.IParameterModelBaseConvention convention);
static member Add : Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection * Microsoft.AspNetCore.Mvc.ApplicationModels.IParameterModelBaseConvention -> Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection
<Extension()>
Public Function Add (conventions As PageConventionCollection, convention As IParameterModelBaseConvention) As PageConventionCollection

参数

返回

PageConventionCollection

适用于