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.

C#
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
public sealed class ODataRoutePrefixAttribute : 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

Product Versions
OData Web API ASP .NET 7.0, Core 7.0