ApiConventionMethodAttribute ApiConventionMethodAttribute ApiConventionMethodAttribute 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. for details about applying conventions at the assembly or controller level.

public ref class ApiConventionMethodAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class ApiConventionMethodAttribute : Attribute
type ApiConventionMethodAttribute = class
    inherit Attribute
Public NotInheritable Class ApiConventionMethodAttribute
Inherits Attribute
Inheritance
ApiConventionMethodAttributeApiConventionMethodAttributeApiConventionMethodAttributeApiConventionMethodAttribute
Attributes

Constructors

ApiConventionMethodAttribute(Type, String) ApiConventionMethodAttribute(Type, String) ApiConventionMethodAttribute(Type, String) ApiConventionMethodAttribute(Type, String)

Initializes an ApiConventionMethodAttribute instance using conventionType and the specified methodName.

Properties

ConventionType ConventionType ConventionType ConventionType

Gets the convention type.

Applies to