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
ファイルシステムが間違った情報または古い情報を返した場合でも、基になるファイルシステムを修正することはできません。Refresh
cannot correct the underlying file system even if the file system returns incorrect or outdated information. これは、Windows 98 などのプラットフォームで発生する可能性があります。This can happen on platforms such as Windows 98.
属性情報を取得する前に、への呼び出しを行う必要があります。これを行わないと、 Refresh
情報が古くなります。Calls must be made to Refresh
before attempting to get the attribute information, or the information will be outdated.