Udostępnij za pośrednictwem


ODataPath Klasa

Definicja

Reprezentacja części ścieżki identyfikatora URI OData składającego się z ODataPathSegmentwartości s.

public class ODataPath : System.Collections.Generic.IEnumerable<Microsoft.OData.UriParser.ODataPathSegment>
type ODataPath = class
    interface seq<ODataPathSegment>
    interface IEnumerable
Public Class ODataPath
Implements IEnumerable(Of ODataPathSegment)
Dziedziczenie
ODataPath
Pochodne
Implementuje

Konstruktory

ODataPath(IEnumerable<ODataPathSegment>)

Tworzy nowe wystąpienie ODataPath zawierające podane segmenty.

ODataPath(ODataPathSegment[])

Tworzy nowe wystąpienie ODataPath zawierające podane segmenty.

Właściwości

Count

Pobierz liczbę segmentów w tej ścieżce.

FirstSegment

Pobiera pierwszy segment w ścieżce. Zwraca wartość null, jeśli ścieżka jest pusta.

LastSegment

Pobierz ostatni segment w ścieżce. Zwraca wartość null, jeśli ścieżka jest pusta.

Metody

GetEnumerator()

Pobieranie modułu wyliczającego segmentów

WalkWith(PathSegmentHandler)

Przewodnik po tej ścieżce przy użyciu programu obsługi

WalkWith<T>(PathSegmentTranslator<T>)

Przewodnik po tej ścieżce przy użyciu tłumacza

Jawne implementacje interfejsu

IEnumerable.GetEnumerator()

pobieranie modułu wyliczającego segmentów

Dotyczy