C# Class Sage.SData.Client.Framework.UriPathSegment

Defines a path segment within a Uri
Afficher le fichier Open project: Saleslogix/SDataCSharpClientLib Class Usage Examples

Private Properties

Свойство Type Description
CheckParse void
CheckRebuild void
ValidateSegment string

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
CheckParse ( ) : void
CheckRebuild ( ) : void
ValidateSegment ( string segment ) : string

Method Details

AppendPath() public static méthode

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.
Résultat string

AppendPath() public static méthode

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.
Résultat void

Equals() public méthode

Compares the specified object with this UriPathSegment.
public Equals ( object obj ) : bool
obj object The to compare.
Résultat bool

FromStrings() public static méthode

Builds an enumerable of UriPathSegment objects from an enumerable of String Array.
public static FromStrings ( IEnumerable segments ) : IEnumerable
segments IEnumerable of strings.
Résultat IEnumerable

GetHashCode() public méthode

Returns the haskcode for the UriPathSegment.
public GetHashCode ( ) : int
Résultat int

GetPathSegments() public static méthode

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.
Résultat IEnumerable

OnParse() protected méthode

Called when the Segment needs parsing to extract the Text and Predicate values.
protected OnParse ( ) : void
Résultat void

OnRebuild() protected méthode

Called when the Segment needs rebuilding using the Text and Predicate values.
protected OnRebuild ( ) : void
Résultat void

ToString() public méthode

Returns a String representation of the segment.
public ToString ( ) : string
Résultat string

UriPathSegment() public méthode

Initialises a new instance of the UriPathSegment class.
public UriPathSegment ( ) : System
Résultat System

UriPathSegment() public méthode

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.
Résultat System

UriPathSegment() public méthode

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.
Résultat System

UriPathSegment() public méthode

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.
Résultat System