ApiConventionTypeAttribute Třída

Definice

Konvence rozhraní API, které se použijí na sestavení obsahující kontrolery MVC nebo na jeden kontroler.

Konvence rozhraní API se používají k ovlivnění výstupu apiExploreru. Konvence musí být statické typy. Metody v konvenci se shodují s metodou akce pomocí pravidel určených ApiConventionNameMatchAttribute podle toho, která se můžou použít pro název metody nebo její parametry a ApiConventionTypeMatchAttribute které se použijí na parametry.

Pokud nebyly nalezeny žádné atributy určující chování, MVC odpovídá názvům metod a názvům parametrů pomocí Exact a typy parametrů se shodují pomocí AssignableFrom.

public ref class ApiConventionTypeAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ApiConventionTypeAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ApiConventionTypeAttribute = class
    inherit Attribute
Public NotInheritable Class ApiConventionTypeAttribute
Inherits Attribute
Dědičnost
ApiConventionTypeAttribute
Atributy

Konstruktory

ApiConventionTypeAttribute(Type)

Inicializuje ApiConventionTypeAttribute instanci pomocí conventionType.

Vlastnosti

ConventionType

Získá typ konvence.

Platí pro