ApiConventionMethodAttribute(Type, String) Konstruktor

Definice

Inicializuje ApiConventionMethodAttribute instanci pomocí conventionType a zadané 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)

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 na název metody nebo její parametry a ApiConventionTypeMatchAttribute které se použijí na parametry.

methodName
String

Název metody.

Platí pro