Language

FunctionSegmentTemplate Class

Definition

Represents a template that could match a bound IEdmFunction.

public class FunctionSegmentTemplate : Microsoft.AspNetCore.OData.Routing.Template.ODataSegmentTemplate
type FunctionSegmentTemplate = class
    inherit ODataSegmentTemplate
Public Class FunctionSegmentTemplate
Inherits ODataSegmentTemplate
Inheritance
FunctionSegmentTemplate

Constructors

Name Description
FunctionSegmentTemplate(IDictionary<String,String>, IEdmFunction, IEdmNavigationSource)

Initializes a new instance of the FunctionSegmentTemplate class.

FunctionSegmentTemplate(IEdmFunction, IEdmNavigationSource)

Initializes a new instance of the FunctionSegmentTemplate class.

FunctionSegmentTemplate(OperationSegment)

Initializes a new instance of the FunctionSegmentTemplate class.

Properties

Name Description
Function

Gets the wrapped Edm function.

NavigationSource

Gets the wrapped navigation source.

ParameterMappings

Gets the dictionary representing the mappings from the parameter names in the current function segment to the parameter names in route data.

Methods

Name Description
GetTemplates(ODataRouteOptions)

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.

TryTranslate(ODataTemplateTranslateContext)

Translate the template into a real OData path segment ODataPathSegment

Applies to