Jaa


ValueSegmentTemplate Class

Definition

Represents a template that could match a "/$value" segment.

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

Constructors

ValueSegmentTemplate(IEdmType)

Initializes a new instance of the ValueSegmentTemplate class.

ValueSegmentTemplate(ValueSegment)

Initializes a new instance of the ValueSegmentTemplate class.

Properties

Segment

Gets the value 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