ApiConventionMethodAttribute(Type, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes an ApiConventionMethodAttribute instance using conventionType
and
the specified 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)
Parameters
- conventionType
- Type
The Type of the convention.
Conventions must be static types. Methods in a convention are matched to an action method using rules specified by ApiConventionNameMatchAttribute that may be applied to a method name or its parameters and ApiConventionTypeMatchAttribute that are applied to parameters.
- methodName
- String
The method name.