Compartilhar via


ApiConventionTypeAttribute(Type) Construtor

Definição

Inicializa uma ApiConventionTypeAttribute instância usando 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)

Parâmetros

conventionType
Type

O Type da convenção.

As convenções devem ser tipos estáticos. Os métodos em uma convenção correspondem a um método de ação usando regras especificadas por ApiConventionNameMatchAttribute que podem ser aplicadas a um nome de método ou seus parâmetros e ApiConventionTypeMatchAttribute que são aplicados a parâmetros.

Aplica-se a