Ανάγνωση στα Αγγλικά

Κοινή χρήση μέσω


ApiConventionMethodAttribute Class

Definition

API conventions to be applied to a controller action.

API conventions are used to influence the output of ApiExplorer. ApiConventionMethodAttribute can be used to specify an exact convention method that applies to an action. ApiConventionTypeAttribute for details about applying conventions at the assembly or controller level.

C#
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class ApiConventionMethodAttribute : Attribute
Inheritance
ApiConventionMethodAttribute
Attributes

Constructors

ApiConventionMethodAttribute(Type, String)

Initializes an ApiConventionMethodAttribute instance using conventionType and the specified methodName.

Properties

ConventionType

Gets the convention type.

Applies to

Προϊόν Εκδόσεις
ASP.NET Core 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0