Method AddSegment
AddSegment(string?[], bool)
Adds one or more segments to the URL path.
public UrlBuilder AddSegment(string?[] segments, bool allowRelativeReturns = false)
Parameters
segmentsstring[]The segments to add, or an array containing null values to indicate relative URLs.
allowRelativeReturnsboolIf true, allows the addition of relative URLs that return to a parent directory.
Returns
- UrlBuilder
The current UrlBuilder instance.
AddSegment(params string?[])
Adds one or more segments to the URL path.
public UrlBuilder AddSegment(params string?[] segments)
Parameters
segmentsstring[]The segments to add.
Returns
- UrlBuilder
The current UrlBuilder instance.
Exceptions
- ArgumentNullException
Thrown if
segmentsis null.
AddSegment(string?)
Adds a single segment to the URL path.
public UrlBuilder AddSegment(string? segment)
Parameters
segmentstringThe segment to add.
Returns
- UrlBuilder
The current UrlBuilder instance.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語