FileSystemInfo.Refresh 方法
定义
刷新对象的状态。Refreshes the state of the object.
public:
void Refresh();
public void Refresh ();
member this.Refresh : unit -> unit
Public Sub Refresh ()
例外
设备(如磁盘驱动器)未准备好。A device such as a disk drive is not ready.
注解
FileSystemInfo.Refresh 拍摄当前文件系统中的文件快照。FileSystemInfo.Refresh takes a snapshot of the file from the current file system.
Refresh请在尝试获取属性信息之前调用,否则信息将过时。Call Refresh before attempting to get the attribute information, or the information will be outdated.