Interface IEnvVarPath
Represents a path on file system, prefixed with an environment variable.
public interface IEnvVarPath : IPath
- Inherited Members
- Extension Methods
Properties (2)
EnvVar
Gets the environment variable string, prefixed and suffixed with two percents char.
string EnvVar { get; }
Property Value
ParentDirectoryPath
Returns a new directory path prefixed with an environment variable, representing the parent directory of this path prefixed with an environment variable.
IEnvVarDirectoryPath ParentDirectoryPath { get; }
Property Value
Exceptions
- InvalidOperationException
This path prefixed with an environment variable has no parent directory.
Methods (2)
TryResolve(out IAbsolutePath)
Returns EnvVarPathResolvingStatus.Success if this path is prefixed with an environment variable that can be resolved into a drive letter or a UNC absolute path.
EnvVarPathResolvingStatus TryResolve(out IAbsolutePath pathResolved)
Parameters
pathResolvedIAbsolutePathIt is the absolute path resolved returned by this method.
Returns
TryResolve(out IAbsolutePath, out string)
Returns true if this path is prefixed with an environment variable that can be resolved into a drive letter or a UNC absolute path.
bool TryResolve(out IAbsolutePath pathResolved, out string failureReason)
Parameters
pathResolvedIAbsolutePathIt is the absolute path resolved returned by this method.
failureReasonstringIf false is returned,
failureReasoncontains the plain english description of the failure.