ODataPathTemplate.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.
Generates all templates for the given ODataPathTemplate using the given ODataRouteOptions. All templates mean:
- for key segment, we have key in parenthesis and key as segment.
- 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.