Method AddSegmentIf
AddSegmentIf(string, bool)
Conditionally adds a segment to the URL path.
public UrlBuilder AddSegmentIf(string segment, bool condition)
Parameters
segmentstringThe segment to add.
conditionboolThe condition under which the segment should be added.
Returns
- UrlBuilder
The current UrlBuilder instance, with the segment added if
conditionis true.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語