Table of Contents

Method Pop

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

Pop(int)

Removes the last segment(s) from the URL path.

public UrlBuilder Pop(int amount = 1)

Parameters

amount int

The number of segments to remove. Defaults to 1 if not specified.

Returns

UrlBuilder

The current UrlBuilder instance.

Exceptions

ArgumentOutOfRangeException

Thrown if amount is negative.