ODataSegmentTemplate.GetTemplates(ODataRouteOptions) Method
Definition
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.
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 abstract System.Collections.Generic.IEnumerable<string> GetTemplates (Microsoft.AspNetCore.OData.Routing.ODataRouteOptions options);
abstract member GetTemplates : Microsoft.AspNetCore.OData.Routing.ODataRouteOptions -> seq<string>
Public MustOverride Function GetTemplates (options As ODataRouteOptions) As IEnumerable(Of String)
Parameters
- options
- ODataRouteOptions
The route options.
Returns
The built segment templates.