Mono Class Library: System.IO.Path Overview | Members

System.IO.Path.IsPathRooted Method

Returns a bool indicating whether the specified path string contains a path root component. [Edit]

public static bool IsPathRooted (string path)

Parameters

path
A string containing the path to test. [Edit]

Returns

true if path contains an absolute path; false if path contains relative path information.

Platforms that do not support this feature return false.

[Edit]

Exceptions

TypeReason
ArgumentExceptionpath contains one or more implementation-specific invalid characters. [Edit]

Remarks

Note: This method does not access file systems or verify the existence of the specified path.
[Edit]

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0