Method TryParseAbsolute
TryParseAbsolute(ReadOnlySpan<char>, out IAbsoluteDirectoryPath?)
Attempts to parse an absolute directory path using the NoUnfriendlyNames option and the current platform's format.
Declaration
public static bool TryParseAbsolute(ReadOnlySpan<char> path, out IAbsoluteDirectoryPath? result)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<char> | path | An absolute directory path. |
| IAbsoluteDirectoryPath | result | When this method returns, contains the parsed path if parsing succeeded, otherwise null. |
Returns
| Type | Description |
|---|---|
| bool |
TryParseAbsolute(ReadOnlySpan<char>, PathFormat, out IAbsoluteDirectoryPath?)
Attempts to parse an absolute directory path using the specified format and the NoUnfriendlyNames option.
Declaration
public static bool TryParseAbsolute(ReadOnlySpan<char> path, PathFormat format, out IAbsoluteDirectoryPath? result)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<char> | path | An absolute directory path. |
| PathFormat | format | The path's format. |
| IAbsoluteDirectoryPath | result | When this method returns, contains the parsed path if parsing succeeded, otherwise null. |
Returns
| Type | Description |
|---|---|
| bool |
TryParseAbsolute(ReadOnlySpan<char>, PathOptions, out IAbsoluteDirectoryPath?)
Attempts to parse an absolute directory path using the specified options and the current platform's format.
Declaration
public static bool TryParseAbsolute(ReadOnlySpan<char> path, PathOptions options, out IAbsoluteDirectoryPath? result)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<char> | path | An absolute directory path. |
| PathOptions | options | Specifies the path parsing options. |
| IAbsoluteDirectoryPath | result | When this method returns, contains the parsed path if parsing succeeded, otherwise null. |
Returns
| Type | Description |
|---|---|
| bool |
TryParseAbsolute(ReadOnlySpan<char>, PathFormat, PathOptions, out IAbsoluteDirectoryPath?)
Attempts to parse an absolute directory path using the specified format and options.
Declaration
public static bool TryParseAbsolute(ReadOnlySpan<char> path, PathFormat format, PathOptions options, out IAbsoluteDirectoryPath? result)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<char> | path | An absolute directory path. |
| PathFormat | format | The path's format. |
| PathOptions | options | Specifies the path parsing options. |
| IAbsoluteDirectoryPath | result | When this method returns, contains the parsed path if parsing succeeded, otherwise null. |
Returns
| Type | Description |
|---|---|
| bool |