SingletonSegmentTemplate Class
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.
Represents a template that could match an IEdmSingleton.
public class SingletonSegmentTemplate : Microsoft.AspNetCore.OData.Routing.Template.ODataSegmentTemplate
type SingletonSegmentTemplate = class
inherit ODataSegmentTemplate
Public Class SingletonSegmentTemplate
Inherits ODataSegmentTemplate
- Inheritance
Constructors
SingletonSegmentTemplate(IEdmSingleton) |
Initializes a new instance of the SingletonSegmentTemplate class. |
SingletonSegmentTemplate(SingletonSegment) |
Initializes a new instance of the SingletonSegmentTemplate class. |
Properties
Segment |
Gets the wrapped singleton segment. |
Singleton |
Gets the wrapped Edm singleton. |
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 |