ODataRoutePrefixAttribute Class

Definition

Represents an attribute that can be placed on an OData controller to specify the prefix that will be used for all actions of that controller.

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

Constructors

ODataRoutePrefixAttribute(String)

Initializes a new instance of the ODataRouteAttribute class.

Properties

Prefix

Gets the OData URL path template that this action handles.

Applies to