Share via


ApiConventionMethodAttribute(Type, String) Construtor

Definição

Inicializa uma ApiConventionMethodAttribute instância usando conventionType e o especificado methodName.

public:
 ApiConventionMethodAttribute(Type ^ conventionType, System::String ^ methodName);
public ApiConventionMethodAttribute (Type conventionType, string methodName);
new Microsoft.AspNetCore.Mvc.ApiConventionMethodAttribute : Type * string -> Microsoft.AspNetCore.Mvc.ApiConventionMethodAttribute
Public Sub New (conventionType As Type, methodName As String)

Parâmetros

conventionType
Type

O Type da convenção.

As convenções devem ser tipos estáticos. Os métodos em uma convenção são correspondidos 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.

methodName
String

O nome do método.

Aplica-se a