Jaa


DynamicSegmentTemplate Class

Definition

Represents a template that can match a DynamicPathSegment. Be noted: a dynamic path segment is a real segment (not a template), its literal is dynamic property name.

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

Constructors

DynamicSegmentTemplate(DynamicPathSegment)

Initializes a new instance of the DynamicSegmentTemplate class.

Properties

Segment

Gets or sets the open property segment.

Methods

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