C# 클래스 Sage.SData.Client.Framework.UriPathSegment

Defines a path segment within a Uri
파일 보기 프로젝트 열기: Saleslogix/SDataCSharpClientLib 1 사용 예제들

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