ApiConventionTypeAttribute(Type) Konstruktor

Definice

Inicializuje ApiConventionTypeAttribute instanci pomocí 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)

Parametry

conventionType
Type

Konvence Type .

Konvence musí být statické typy. Metody v konvenci se shodují s metodou akce pomocí pravidel určených ApiConventionNameMatchAttribute podle toho, která se můžou použít pro název metody nebo její parametry a ApiConventionTypeMatchAttribute které se použijí na parametry.

Platí pro