Compartir a través de


ApiConventionTypeAttribute(Type) Constructor

Definición

Inicializa una ApiConventionTypeAttribute instancia de mediante 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

de Type la convención.

Las convenciones deben ser tipos estáticos. Los métodos de una convención se coinciden con un método de acción mediante reglas especificadas por ApiConventionNameMatchAttribute que se pueden aplicar a un nombre de método o a sus parámetros y ApiConventionTypeMatchAttribute que se aplican a parámetros.

Se aplica a