Bagikan melalui


ApiConventionTypeAttribute(Type) Konstruktor

Definisi

Menginisialisasi instans ApiConventionTypeAttribute menggunakan 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)

Parameter

conventionType
Type

Dari Type konvensi.

Konvensi harus jenis statis. Metode dalam konvensi dicocokkan dengan metode tindakan menggunakan aturan yang ditentukan oleh ApiConventionNameMatchAttribute yang dapat diterapkan ke nama metode atau parameternya dan ApiConventionTypeMatchAttribute yang diterapkan ke parameter.

Berlaku untuk