Table of Contents

Interface IEnvVarPath

Namespace
NDepend.Path
Assembly
NDepend.API.dll

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

string

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

IEnvVarDirectoryPath

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

pathResolved IAbsolutePath

It is the absolute path resolved returned by this method.

Returns

EnvVarPathResolvingStatus

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

pathResolved IAbsolutePath

It is the absolute path resolved returned by this method.

failureReason string

If false is returned, failureReason contains the plain english description of the failure.

Returns

bool