Condividi tramite


TypeSegment Classe

Definizione

Segmento che rappresenta un cast nel segmento precedente a un altro tipo.

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

Costruttori

TypeSegment(IEdmType, IEdmNavigationSource)

Creare un segmento di tipo usando l'oggetto specificato actualType.

TypeSegment(IEdmType, IEdmType, IEdmNavigationSource)

Compilare il segmento di tipo in base alle assegnazione actualType e expectedType

Proprietà

EdmType

Ottiene l'oggetto IEdmType di questo TypeSegmentoggetto .

ExpectedType

Ottiene il previsto IEdmType di questo TypeSegmentoggetto . Il tipo viene riflesso dal modello e uguale a EdmType del segmento precedente.

Identifier

Restituisce l'identificatore per questo segmento, ovvero la parte stringa senza le chiavi.

(Ereditato da ODataPathSegment)
NavigationSource

Ottiene l'origine di spostamento contenente le entità di cui viene fatto il cast.

Metodi

HandleWith(PathSegmentHandler)

Gestire un TypeSegment oggetto usando un'istanza di PathSegmentHandler.

TranslateWith<T>(PathSegmentTranslator<T>)

Tradurre un TypeSegment oggetto in un altro tipo usando un'istanza di PathSegmentTranslator<T>.

Si applica a