Mono Class Library: Mono.Unix.UnixFileSystemInfo Overview | MembersMono.Unix.UnixFileSystemInfo.Refresh Method |
Refreshes the file system metadata presented. [Edit]
|
This method does not throw exceptions.
Many properties and members will throw a InvalidOperationException if UnixFileSystemInfo.FullName doesn't exist (that is, UnixFileSystemInfo.Exists returns false).
UnixFileSystemInfo.FullName is checked during Mono.Unix.UnixFileSystemInfo creation and on every property access until the file is found. Once found, the file will not be checked for until UnixFileSystemInfo.Refresh is invoked.
Consequently, if the file system entry is removed (via UnixFileSystemInfo.Delete or another process or some other means) or changed (written to, touch(1)'d, etc.), the information provided by this class will be stale and out of date.
Use this method to refresh the information provided by this class.
[Edit]
Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0