C# Класс Sage.SData.Client.Framework.UriPathSegment

Defines a path segment within a Uri
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CheckParse void
CheckRebuild void
ValidateSegment string

Открытые методы

Метод Описание
AppendPath ( string path, string segment ) : string

Appends a segment to a path.

If the segment starts with a forward slash it is assumed that the segment specifies an absolute path.

AppendPath ( StringBuilder path, string segment ) : void

Appends a segment to a path.

If the segment starts with a forward slash it is assumed that the segment specifies an absolute path.

Equals ( object obj ) : bool

Compares the specified object with this UriPathSegment.

FromStrings ( IEnumerable segments ) : IEnumerable

Builds an enumerable of UriPathSegment objects from an enumerable of String Array.

GetHashCode ( ) : int

Returns the haskcode for the UriPathSegment.

GetPathSegments ( string path ) : IEnumerable

Returns the segments that make up the specified path.

ToString ( ) : string

Returns a String representation of the segment.

UriPathSegment ( ) : System

Initialises a new instance of the UriPathSegment class.

UriPathSegment ( UriPathSegment segment ) : System

Initialises a new instance of the UriPathSegment class with the details of the specified segment.

UriPathSegment ( string segment ) : System

Initialises a new instance of the UriPathSegment class with the specified text.

UriPathSegment ( string text, string predicate ) : System

Initialises a new instance of the UriPathSegment class with the specified text and predicate.

Защищенные методы

Метод Описание
OnParse ( ) : void

Called when the Segment needs parsing to extract the Text and Predicate values.

OnRebuild ( ) : void

Called when the Segment needs rebuilding using the Text and Predicate values.

Приватные методы

Метод Описание
CheckParse ( ) : void
CheckRebuild ( ) : void
ValidateSegment ( string segment ) : string

Описание методов

AppendPath() публичный статический Метод

Appends a segment to a path.
If the segment starts with a forward slash it is assumed that the segment specifies an absolute path.
public static AppendPath ( string path, string segment ) : string
path string The path to append the segment to.
segment string The segment to append to the path.
Результат string

AppendPath() публичный статический Метод

Appends a segment to a path.
If the segment starts with a forward slash it is assumed that the segment specifies an absolute path.
public static AppendPath ( StringBuilder path, string segment ) : void
path StringBuilder The path to append the segment to.
segment string The segment to append to the path.
Результат void

Equals() публичный Метод

Compares the specified object with this UriPathSegment.
public Equals ( object obj ) : bool
obj object The to compare.
Результат bool

FromStrings() публичный статический Метод

Builds an enumerable of UriPathSegment objects from an enumerable of String Array.
public static FromStrings ( IEnumerable segments ) : IEnumerable
segments IEnumerable of strings.
Результат IEnumerable

GetHashCode() публичный Метод

Returns the haskcode for the UriPathSegment.
public GetHashCode ( ) : int
Результат int

GetPathSegments() публичный статический Метод

Returns the segments that make up the specified path.
public static GetPathSegments ( string path ) : IEnumerable
path string The path to to return the segments for.
Результат IEnumerable

OnParse() защищенный Метод

Called when the Segment needs parsing to extract the Text and Predicate values.
protected OnParse ( ) : void
Результат void

OnRebuild() защищенный Метод

Called when the Segment needs rebuilding using the Text and Predicate values.
protected OnRebuild ( ) : void
Результат void

ToString() публичный Метод

Returns a String representation of the segment.
public ToString ( ) : string
Результат string

UriPathSegment() публичный Метод

Initialises a new instance of the UriPathSegment class.
public UriPathSegment ( ) : System
Результат System

UriPathSegment() публичный Метод

Initialises a new instance of the UriPathSegment class with the details of the specified segment.
public UriPathSegment ( UriPathSegment segment ) : System
segment UriPathSegment The segment to copy the details from.
Результат System

UriPathSegment() публичный Метод

Initialises a new instance of the UriPathSegment class with the specified text.
public UriPathSegment ( string segment ) : System
segment string The text and predicate for the segment.
Результат System

UriPathSegment() публичный Метод

Initialises a new instance of the UriPathSegment class with the specified text and predicate.
public UriPathSegment ( string text, string predicate ) : System
text string The text for the segment.
predicate string The predicate for the segment.
Результат System