Share via


UriTemplateExpression Class

Definition

The class representing the URI Template parsing result.

public sealed class UriTemplateExpression
type UriTemplateExpression = class
Public NotInheritable Class UriTemplateExpression
Inheritance
UriTemplateExpression

Remarks

A URI Template is a string wrapped in brackets, it is capable for describing a range of Uniform Resource Identifiers. The URI Template can be used for both building and parsing URI. Set the EnableUriTemplateParsing property of ODataUriParser to true, to enable parsing the Uri template.

For example, in the following URI http://example.org/service/Customers({CID}) {CID} is a validate Uri template for Customers' ID segment, in the parsing result of UriTemplateExpression, LiteralText would be the original literal "{CID}", and ExpectedType would be the actual type for Customers' ID.

See RFC6570 for detail.

Constructors

UriTemplateExpression()

Properties

ExpectedType

The expected type of the object which the Uri template stands for.

LiteralText

The original text for the Uri template.

Applies to