Udostępnij za pośrednictwem


ODataRoutingAttribute Klasa

Definicja

Definiuje atrybut na poziomie kontrolera, który może służyć do włączania wyboru akcji OData na podstawie konwencji routingu.

[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
Dziedziczenie
ODataRoutingAttribute
Atrybuty
Implementuje
System.Web.Http.Controllers.IControllerConfiguration

Konstruktory

ODataRoutingAttribute()

Definiuje atrybut na poziomie kontrolera, który może służyć do włączania wyboru akcji OData na podstawie konwencji routingu.

Metody

Initialize(HttpControllerSettings, HttpControllerDescriptor)

Wywołanie zwrotne wywołane w celu ustawienia przesłonięć kontrolera dla tego kontroleraDescriptor.

Dotyczy