Function GenericPath.Segment.this
Constructs a new path segment including an optional trailing separator.
this
(
string name,
char separator = '\0'
);
Parameters
Name | Description |
---|---|
name | The raw (unencoded) name of the path segment |
separator | Optional trailing path separator (e.g. '/' ) |
Throws
A PathValidationException
is thrown if the name contains
characters that are invalid for the path type. In particular,
any path separator characters may not be part of the name.