Sdílet prostřednictvím


ODataRoutingAttribute Třída

Definice

Definuje atribut na úrovni kontroleru, který lze použít k povolení výběru akce OData na základě konvencí směrování.

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public sealed class ODataRoutingAttribute : Attribute, System.Web.Http.Controllers.IControllerConfiguration
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public sealed class ODataRoutingAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type ODataRoutingAttribute = class
    inherit Attribute
    interface IControllerConfiguration
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type ODataRoutingAttribute = class
    inherit Attribute
Public NotInheritable Class ODataRoutingAttribute
Inherits Attribute
Implements IControllerConfiguration
Public NotInheritable Class ODataRoutingAttribute
Inherits Attribute
Dědičnost
ODataRoutingAttribute
Atributy
Implementuje
System.Web.Http.Controllers.IControllerConfiguration

Konstruktory

ODataRoutingAttribute()

Definuje atribut na úrovni kontroleru, který lze použít k povolení výběru akce OData na základě konvencí směrování.

Metody

Initialize(HttpControllerSettings, HttpControllerDescriptor)

Zpětné volání bylo vyvoláno k nastavení přepsání jednotlivých řadičů pro tento popisovač controllerDescriptor.

Platí pro