NDepend.API Documentation
IsValidRelativeFilePath(String,String) Method
NDepend.Path Namespace > PathHelpers Class > IsValidRelativeFilePath Method : IsValidRelativeFilePath(String,String) Method
this string
If false is returned, failureReason contains the plain english description of the failure.
Determine whether this string is a valid relative file path or not.
Syntax
[Extension()]
public static bool IsValidRelativeFilePath( 
   string pathString,
   out string failureReason
)

Parameters

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

Return Value

true if this string represents a valid relative file path, otherwise false.
Remarks
If this method returns true ToRelativeFilePath can be safely invoked on this string to obtain a IRelativeFilePath.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

PathHelpers Class
PathHelpers Members
Overload List