Sdílet prostřednictvím


ODataPath Třída

Definice

Reprezentace části cesty identifikátoru URI OData, která se skládá z ODataPathSegments.

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)
Dědičnost
ODataPath
Odvozené
Implementuje

Konstruktory

ODataPath(IEnumerable<ODataPathSegment>)

Vytvoří novou instanci obsahující ODataPath dané segmenty.

ODataPath(ODataPathSegment[])

Vytvoří novou instanci obsahující ODataPath dané segmenty.

Vlastnosti

Count

Získá počet segmentů v této cestě.

FirstSegment

Získá první segment v cestě. Pokud je cesta prázdná, vrátí hodnotu null.

LastSegment

Získá poslední segment v cestě. Pokud je cesta prázdná, vrátí hodnotu null.

Metody

GetEnumerator()

Získání výčtu segmentů

WalkWith(PathSegmentHandler)

Procházení této cesty pomocí obslužné rutiny

WalkWith<T>(PathSegmentTranslator<T>)

Projděte si tuto cestu pomocí překladače

Explicitní implementace rozhraní

IEnumerable.GetEnumerator()

get the segments enumerator

Platí pro