TypeSegment 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.
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
Constructors
TypeSegment(IEdmType, IEdmNavigationSource) |
Build a type segment using the given |
TypeSegment(IEdmType, IEdmType, IEdmNavigationSource) |
Build the type segment based on the giving |
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>. |