Sisk

Method

UrlBuilder.AddSegment

Namespace
Sisk.Core.Helpers
Assembly
Sisk.Core.dll

AddSegment(string?[], bool) #

Adds one or more segments to the URL path.

C#
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 #

UrlBuilder

The current UrlBuilder instance.

AddSegment(params string?[]) #

Adds one or more segments to the URL path.

C#
public UrlBuilder AddSegment(params string?[] segments)

Parameters #

segments string?[]

The segments to add.

Returns #

UrlBuilder

The current UrlBuilder instance.

Exceptions #

ArgumentNullException

Thrown if segments is null.

AddSegment(string?) #

Adds a single segment to the URL path.

C#
public UrlBuilder AddSegment(string? segment)

Parameters #

segment string?

The segment to add.

Returns #

UrlBuilder

The current UrlBuilder instance.

Type to search the documentation and the API reference.