Class CastPathSegment
An ODataPathSegment implementation representing a cast.
public class CastPathSegment : ODataPathSegment
- Inheritance
-
CastPathSegment
- Inherited Members
Constructors
CastPathSegment(IEdmEntityType)
Initializes a new instance of the CastPathSegment class.
public CastPathSegment(IEdmEntityType castType)
Parameters
castType
IEdmEntityTypeThe type of the cast.
CastPathSegment(string)
Initializes a new instance of the CastPathSegment class.
public CastPathSegment(string castTypeName)
Parameters
castTypeName
stringName of the cast type.
Properties
CastType
Gets the type of the cast.
public IEdmEntityType CastType { get; }
Property Value
- IEdmEntityType
CastTypeName
Gets the name of the cast type.
public string CastTypeName { get; }
Property Value
SegmentKind
Gets the segment kind for the current segment.
public override string SegmentKind { get; }
Property Value
Methods
GetEdmType(IEdmType)
Gets the EDM type for this segment.
public override IEdmType GetEdmType(IEdmType previousEdmType)
Parameters
previousEdmType
IEdmTypeThe EDM type of the previous path segment.
Returns
- IEdmType
The EDM type for this segment.
GetEntitySet(IEdmEntitySet)
Gets the entity set for this segment.
public override IEdmEntitySet GetEntitySet(IEdmEntitySet previousEntitySet)
Parameters
previousEntitySet
IEdmEntitySetThe entity set of the previous path segment.
Returns
- IEdmEntitySet
The entity set for this segment.
ToString()
Returns a string that represents this instance.
public override string ToString()