共用方式為


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 套用至參數。

適用於