[Extension()] public static bool TryGetEnvVarDirectoryPath( string pathString, out IEnvVarDirectoryPath envVarDirectoryPath, out string failureReason )
Parameters
- pathString
- Represents the path.
- envVarDirectoryPath
- If this method returns true, this is the returned path object.
- failureReason
- If this method returns false, this is the plain english description of the failure.
Return Value
true if pathString is a valid directory path prefixed with an environment variable and as a consequence, the returned envVarDirectoryPath is not null.