다음을 통해 공유


ApiConventionMethodAttribute(Type, String) 생성자

정의

및 지정된 methodNameApiConventionMethodAttribute 사용하여 conventionType instance 초기화합니다.

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

메서드 이름입니다.

적용 대상