Share via


ODataRouteAttribute Class

Definition

Represents an attribute that can be placed on an action of an ODataController to specify the OData URLs that the action handles.

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)]
public sealed class ODataRouteAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)>]
type ODataRouteAttribute = class
    inherit Attribute
Public NotInheritable Class ODataRouteAttribute
Inherits Attribute
Inheritance
ODataRouteAttribute
Attributes

Constructors

ODataRouteAttribute()

Initializes a new instance of the ODataRouteAttribute class.

ODataRouteAttribute(String)

Initializes a new instance of the ODataRouteAttribute class.

Properties

PathTemplate

Gets the OData URL path template that this action handles.

RouteName

Gets or sets the OData route with which to associate the attribute.

Applies to