ODataRouteAttribute Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
ODataRouteAttribute() |
Initializes a new instance of the ODataRouteAttribute class. |
ODataRouteAttribute(String) |
Initializes a new instance of the ODataRouteAttribute class. |
Initializes a new instance of the ODataRouteAttribute class.
C#
public ODataRouteAttribute ();
Public Sub New ()
Applies to
OData Web API ASP .NET Core 7.0 and OData Web API ASP .NET 7.0
Product | Versions |
---|---|
OData Web API ASP .NET | 7.0, Core 7.0 |
Initializes a new instance of the ODataRouteAttribute class.
C#
public ODataRouteAttribute (string pathTemplate);
new Microsoft.AspNet.OData.Routing.ODataRouteAttribute : string -> Microsoft.AspNet.OData.Routing.ODataRouteAttribute
Public Sub New (pathTemplate As String)
Parameters
- pathTemplate
- String
The OData URL path template that this action handles.
Applies to
OData Web API ASP .NET Core 7.0 and OData Web API ASP .NET 7.0
Product | Versions |
---|---|
OData Web API ASP .NET | 7.0, Core 7.0 |