ApiConventionMethodAttribute Class
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.
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 |
Properties
ConventionType |
Gets the convention type. |