![]()  | 
  
    Sphyrnidae Common Library
    2.0.1
    
   Shared Utilities/Library 
   | 
 
Parses out relative paths More...
Public Member Functions | |
| RelativePathBuilder (string path="") | |
| Constructor  More... | |
| RelativePathBuilder | ClearPathSegments () | 
| If you wish to remove all path segments to build new ones (existing segments can be retrieved via public property)  More... | |
| RelativePathBuilder | RemoveFirstSegment () | 
| Removes the first path segment  More... | |
| RelativePathBuilder | RemoveLastSegment () | 
| Removes the last path segment  More... | |
| RelativePathBuilder | AddPathSegment (string segment) | 
| Adds a segment to the relative path  More... | |
| RelativePathBuilder | AddPathSegmentToBeginning (string segment) | 
| Adds a segment to the beginning of the relative path  More... | |
| RelativePathBuilder | ClearQueryString () | 
| Removes all items from the query string  More... | |
| RelativePathBuilder | RemoveFromQueryString (string key) | 
| Removes an item from the query string. If key not found, this does nothing  More... | |
| RelativePathBuilder | AddQueryString (string key, string value) | 
| Adds a key and value combination to the query string (parameters are raw text, the actual relative path will have these properly escaped)  More... | |
| RelativePathBuilder | WithFragment (string fragment) | 
| Sets the fragment for the relative path  More... | |
| string | Build () | 
| Must be called last  More... | |
Parses out relative paths
| Sphyrnidae.Common.Paths.RelativePathBuilder.RelativePathBuilder | ( | string | path = "" | ) | 
Constructor
| path | The existing relative path (if not provided, will start with empty string) | 
| RelativePathBuilder Sphyrnidae.Common.Paths.RelativePathBuilder.AddPathSegment | ( | string | segment | ) | 
Adds a segment to the relative path
| segment | The segment to add | 
| RelativePathBuilder Sphyrnidae.Common.Paths.RelativePathBuilder.AddPathSegmentToBeginning | ( | string | segment | ) | 
Adds a segment to the beginning of the relative path
| segment | The segment to add | 
| RelativePathBuilder Sphyrnidae.Common.Paths.RelativePathBuilder.AddQueryString | ( | string | key, | 
| string | value | ||
| ) | 
Adds a key and value combination to the query string (parameters are raw text, the actual relative path will have these properly escaped)
| key | The key (eg. key=value) | 
| value | The value (eg. key=value) | 
| string Sphyrnidae.Common.Paths.RelativePathBuilder.Build | ( | ) | 
Must be called last
| RelativePathBuilder Sphyrnidae.Common.Paths.RelativePathBuilder.ClearPathSegments | ( | ) | 
If you wish to remove all path segments to build new ones (existing segments can be retrieved via public property)
| RelativePathBuilder Sphyrnidae.Common.Paths.RelativePathBuilder.ClearQueryString | ( | ) | 
Removes all items from the query string
| RelativePathBuilder Sphyrnidae.Common.Paths.RelativePathBuilder.RemoveFirstSegment | ( | ) | 
Removes the first path segment
| RelativePathBuilder Sphyrnidae.Common.Paths.RelativePathBuilder.RemoveFromQueryString | ( | string | key | ) | 
Removes an item from the query string. If key not found, this does nothing
| key | The key (eg. key=value) | 
| RelativePathBuilder Sphyrnidae.Common.Paths.RelativePathBuilder.RemoveLastSegment | ( | ) | 
Removes the last path segment
| RelativePathBuilder Sphyrnidae.Common.Paths.RelativePathBuilder.WithFragment | ( | string | fragment | ) | 
Sets the fragment for the relative path
| fragment | The fragment to use |