Jaa


CastSegmentTemplate.GetTemplates(ODataRouteOptions) Method

Definition

Gets the templates. It's case-insensitive template. It's used to build the routing template in conventional routing. It's not used in attribute routing. The template string should include the leading "/" if apply.

public override System.Collections.Generic.IEnumerable<string> GetTemplates (Microsoft.AspNetCore.OData.Routing.ODataRouteOptions options);
override this.GetTemplates : Microsoft.AspNetCore.OData.Routing.ODataRouteOptions -> seq<string>
Public Iterator Overrides Function GetTemplates (options As ODataRouteOptions) As IEnumerable(Of String)

Parameters

options
ODataRouteOptions

The route options.

Returns

The built segment templates.

Applies to