Method Parse
Parse(ReadOnlySpan<char>, PathOptions)
Parses an absolute or relative directory path using the specified options and the current platform's format.
Declaration
public static IDirectoryPath Parse(ReadOnlySpan<char> path, PathOptions options = PathOptions.NoUnfriendlyNames)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<char> | path | A directory path. |
| PathOptions | options | Specifies the path parsing options. |
Returns
| Type | Description |
|---|---|
| IDirectoryPath |
Parse(ReadOnlySpan<char>, PathFormat, PathOptions)
Parses an absolute or relative directory path using the specified format and options.
Declaration
public static IDirectoryPath Parse(ReadOnlySpan<char> path, PathFormat format, PathOptions options = PathOptions.NoUnfriendlyNames)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<char> | path | A directory path. |
| PathFormat | format | The path's format. |
| PathOptions | options | Specifies the path parsing options. |
Returns
| Type | Description |
|---|---|
| IDirectoryPath |