ApiConventionTypeAttribute(Type) Constructor

Definition

Initializes an ApiConventionTypeAttribute instance using conventionType.

public:
 ApiConventionTypeAttribute(Type ^ conventionType);
public ApiConventionTypeAttribute (Type conventionType);
new Microsoft.AspNetCore.Mvc.ApiConventionTypeAttribute : Type -> Microsoft.AspNetCore.Mvc.ApiConventionTypeAttribute
Public Sub New (conventionType As Type)

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.

Applies to