ApiConventionTypeAttribute(Type) 构造函数

定义

ApiConventionTypeAttribute使用 conventionType初始化实例。

public:
 ApiConventionTypeAttribute(Type ^ conventionType);
public ApiConventionTypeAttribute (Type conventionType);
new Microsoft.AspNetCore.Mvc.ApiConventionTypeAttribute : Type -> Microsoft.AspNetCore.Mvc.ApiConventionTypeAttribute
Public Sub New (conventionType As Type)

参数

conventionType
Type

Type约定的 。

约定必须是静态类型。 约定中的方法使用指定的 ApiConventionNameMatchAttribute 规则与操作方法匹配,这些规则可应用于方法名称或其参数,并 ApiConventionTypeMatchAttribute 应用于参数。

适用于