Share via


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 jsou spárovány s metodou akce pomocí pravidel určených nástrojem ApiConventionNameMatchAttribute , která se můžou použít na název metody nebo její parametry a ApiConventionTypeMatchAttribute která se použijí na parametry.

Platí pro