Language

ActionSegmentTemplate Class

Definition

Represents a template that could match an IEdmAction.

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

Constructors

Name Description
ActionSegmentTemplate(IEdmAction, IEdmNavigationSource)

Initializes a new instance of the ActionSegmentTemplate class.

ActionSegmentTemplate(OperationSegment)

Initializes a new instance of the ActionSegmentTemplate class.

Properties

Name Description
Action

Gets the wrapped Edm action.

NavigationSource

Gets the wrapped Edm navigation source.

Segment

Gets the action segment.

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