ApiConventionMethodAttribute(Type, String) コンストラクター

定義

と 指定した を ApiConventionMethodAttribute 使用して conventionType インスタンスを初期化します 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)

パラメーター

conventionType
Type

Type規則の 。

規則は静的型である必要があります。 規則内のメソッドは、メソッド名またはそのパラメーターに適用でき、パラメーターに適用される によって指定された ApiConventionNameMatchAttribute ルールを使用して、アクション メソッドと ApiConventionTypeMatchAttribute 照合されます。

methodName
String

メソッド名。

適用対象