ApiConventionMethodAttribute Klasa

Definicja

Konwencje interfejsu API, które mają być stosowane do akcji kontrolera.

Konwencje interfejsu API służą do wpływania na dane wyjściowe interfejsu APIExplorer. ApiConventionMethodAttribute można użyć do określenia dokładnej metody konwencji, która ma zastosowanie do akcji. ApiConventionTypeAttribute aby uzyskać szczegółowe informacje na temat stosowania konwencji na poziomie zestawu lub kontrolera.

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
Dziedziczenie
ApiConventionMethodAttribute
Atrybuty

Konstruktory

ApiConventionMethodAttribute(Type, String)

Inicjuje ApiConventionMethodAttribute wystąpienie przy użyciu polecenia conventionType i określony methodNameelement .

Właściwości

ConventionType

Pobiera typ konwencji.

Dotyczy