ResolveFromPathEnvironmentVariable(String, out FileInfo?) Method

Definition

Namespace CliInvoke
Assembly CliInvoke.dll

Attempts to resolve filePathToResolve by looking it up in the directories listed in the PATH environment variable.

[UnsupportedOSPlatform("ios")]
[UnsupportedOSPlatform("tvos")]
protected virtual bool ResolveFromPathEnvironmentVariable(string filePathToResolve, scoped out FileInfo? resolvedFilePath)

Parameters

filePathToResolve
String

The file path to resolve.

resolvedFilePath
FileInfo

When this method returns, contains the resolved FileInfo on success; otherwise, null.

Returns

Boolean
true if a match was found in PATH; otherwise, false.