Share via


SingletonSegment Class

Definition

A segment representing an singleton in a path.

public sealed class SingletonSegment : Microsoft.OData.UriParser.ODataPathSegment
type SingletonSegment = class
    inherit ODataPathSegment
Public NotInheritable Class SingletonSegment
Inherits ODataPathSegment
Inheritance
SingletonSegment

Constructors

SingletonSegment(IEdmSingleton)

Build a segment representing an singleton

Properties

EdmType

Gets the IEdmType of this SingletonSegment. This will always be an IEdmEntityType of this singleton.

Identifier

Returns the identifier for this segment i.e. string part without the keys.

(Inherited from ODataPathSegment)
Singleton

Gets the singleton represented by this segment.

Methods

HandleWith(PathSegmentHandler)

Handle an SingletonSegment using the an instance of the PathSegmentHandler.

TranslateWith<T>(PathSegmentTranslator<T>)

Translate an SingletonSegment into another type using an instance of PathSegmentTranslator<T>.

Applies to