Mono Class Library: Mono.Unix NamespaceMono.Unix.UnixDriveInfo Class |
See Also: UnixDriveInfo Members
|
All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.
The Mono.Unix.UnixDriveInfo class presents information about a Unix mount point or special file. It allows basic querying about the filesystem
- Total size and free disk space (UnixDriveInfo.TotalSize and UnixDriveInfo.TotalFreeSpace).
- Querying of all availble disk drives, UnixDriveInfo.GetDrives, visible through /etc/fstab.
Information provided this type may not be valid for any significant period of time, due to potential race conditions with other processes running on the system or because of other actions being performed within the current process.
The only gurantee is that the information provided was valid at some point in time, or an InvalidOperationException will be thrown when attempting to access the provided information.
Note: To clarify, most properties will attempt to refresh the information before returning it so that the information retrieved is as up-to-date as possible, but it cannot take everything into consideration.Check the individual method and property documentation to determine if and when an exception will be thrown.
[Edit]
Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0