C#/XAML for HTML5 Documentation
C#/XAML for HTML5 Documentation
Reference
System.IO
Path Class
Path Methods
Combine Method
GetDirectoryName Method
GetExtension Method
GetFileName Method
GetFileNameWithoutExtension Method
GetFullPath Method
GetInvalidFileNameChars Method
GetInvalidPathChars Method
IsPathRooted Method
Path
IsPathRooted Method
Gets a value indicating whether the specified path string contains a root.
Namespace:
System.IO
Assembly:
mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
Copy
public
static
bool
IsPathRooted
(
string
path
)
Parameters
path
Type:
System
String
The path to test.
Return Value
Type:
Boolean
true if
path
contains a root; otherwise, false.
Exceptions
Exception
Condition
ArgumentException
path
contains one or more of the invalid characters defined in
GetInvalidPathChars
.
See Also
Reference
Path Class
System.IO Namespace