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.

public ref class ApiConventionMethodAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class ApiConventionMethodAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type ApiConventionMethodAttribute = class
    inherit Attribute
Public NotInheritable Class ApiConventionMethodAttribute
Inherits 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