Method
UrlBuilder.AddSegment
AddSegment(string?[], bool) #
Adds one or more segments to the URL path.
public UrlBuilder AddSegment(string?[] segments, bool allowRelativeReturns = false)Parameters #
segments string?[]
The segments to add, or an array containing null values to indicate relative URLs.
allowRelativeReturns bool
If true, allows the addition of relative URLs that return to a parent directory.
Returns #
The current UrlBuilder instance.
AddSegment(params string?[]) #
Adds one or more segments to the URL path.
public UrlBuilder AddSegment(params string?[] segments)Parameters #
segments string?[]
The segments to add.
Returns #
The current UrlBuilder instance.
Exceptions #
Thrown if segments is null.
AddSegment(string?) #
Adds a single segment to the URL path.
public UrlBuilder AddSegment(string? segment)Parameters #
segment string?
The segment to add.
Returns #
The current UrlBuilder instance.