Search notes:

System.IO.Path::IsPathRooted()

PowerShell example

The following simple PowerShell script uses IsPathRooted to check if the passed parameter is an absolute or relatie path.
param(
  [parameter(mandatory=$true)]
   $path
)

if ( [System.IO.Path]::IsPathRooted($path) ) {
   write-host "$path is absolute"
}
else {
   write-host "$path is not absolute"
}
Github repository .NET-API, path: /System/IO/Path/IsPathRooted.ps1
Note that IsPathRooted() does not verify if the actual path actually exists.
Compare with the -isAbsolute option of the cmdLet split-path.

Index