The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
DirectoryInfo::Root Property
.NET Framework (current version)
Gets the root portion of the directory.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| SecurityException | The caller does not have the required permission. |
FileIOPermission
for reading from files and directories and for access to the path. Associated enumerations: System.Security.Permissions::FileIOPermissionAccess, System.Security.Permissions::FileIOPermissionAccess
Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: