Udostępnij za pośrednictwem


SingletonSegment Klasa

Definicja

Segment reprezentujący pojedynczy w ścieżce.

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

Konstruktory

SingletonSegment(IEdmSingleton)

Tworzenie segmentu reprezentującego jedenton

Właściwości

EdmType

IEdmType Pobiera ten element SingletonSegment. Będzie to zawsze IEdmEntityType jedenton.

Identifier

Zwraca identyfikator dla tego segmentu, tj. część ciągu bez kluczy.

(Odziedziczone po ODataPathSegment)
Singleton

Pobiera pojedynczy pojedynczy element reprezentowany przez ten segment.

Metody

HandleWith(PathSegmentHandler)

Obsługa SingletonSegment przy użyciu wystąpienia klasy PathSegmentHandler.

TranslateWith<T>(PathSegmentTranslator<T>)

Przetłumacz element SingletonSegment na inny typ przy użyciu wystąpienia klasy PathSegmentTranslator<T>.

Dotyczy