Delen via


ODataPathTemplate.GetTemplates(ODataRouteOptions) Method

Definition

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.
public virtual System.Collections.Generic.IEnumerable<string> GetTemplates (Microsoft.AspNetCore.OData.Routing.ODataRouteOptions options = default);
abstract member GetTemplates : Microsoft.AspNetCore.OData.Routing.ODataRouteOptions -> seq<string>
override this.GetTemplates : Microsoft.AspNetCore.OData.Routing.ODataRouteOptions -> seq<string>
Public Overridable Function GetTemplates (Optional options As ODataRouteOptions = Nothing) As IEnumerable(Of String)

Parameters

options
ODataRouteOptions

The route options.

Returns

All path templates.

Applies to