Share via


TypeSegment Class

Definition

A segment representing a cast on the previous segment to another type.

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

Constructors

TypeSegment(IEdmType, IEdmNavigationSource)

Build a type segment using the given actualType.

TypeSegment(IEdmType, IEdmType, IEdmNavigationSource)

Build the type segment based on the giving actualType and expectedType

Properties

EdmType

Gets the IEdmType of this TypeSegment.

ExpectedType

Gets the expected IEdmType of this TypeSegment. The type is reflected from model and same as the EdmType of previous segment.

Identifier

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

(Inherited from ODataPathSegment)
NavigationSource

Gets the navigation source containing the entities that we are casting.

Methods

HandleWith(PathSegmentHandler)

Handle a TypeSegment using an instance of PathSegmentHandler.

TranslateWith<T>(PathSegmentTranslator<T>)

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

Applies to