Jaa


ODataPathTemplate Class

Definition

Represents a path template that could contains a list of ODataSegmentTemplate.

public class ODataPathTemplate : System.Collections.Generic.List<Microsoft.AspNetCore.OData.Routing.Template.ODataSegmentTemplate>
type ODataPathTemplate = class
    inherit List<ODataSegmentTemplate>
Public Class ODataPathTemplate
Inherits List(Of ODataSegmentTemplate)
Inheritance
ODataPathTemplate

Constructors

ODataPathTemplate(IEnumerable<ODataSegmentTemplate>)

Initializes a new instance of the ODataPathTemplate class.

ODataPathTemplate(IList<ODataSegmentTemplate>)

Initializes a new instance of the ODataPathTemplate class.

ODataPathTemplate(ODataSegmentTemplate[])

Initializes a new instance of the ODataPathTemplate class.

Methods

GetTemplates(ODataRouteOptions)

Generates all templates for the given ODataPathTemplate using the given ODataRouteOptions. All templates mean:

  1. for key segment, we have key in parenthesis and key as segment.
  2. for bound function/action segment, we have qualified function call and unqualified function call. All of such might be based on route options.

Applies to