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

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Microsof...', 1758207397, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/dot-net/namespaces-classes/System/IO/Path/IsPathRooted(55): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78