Refreshes the state of the object.
[Visual Basic] Overrides Public Sub Refresh() [C#] public override void Refresh(); [C++] public: override void Refresh(); [JScript] public override function Refresh();
Exception Type | Condition |
---|---|
ArgumentException | The file is not found. |
IOException | A device such as a disk drive is not ready. |
To avoid caching outdated information, call Refresh before attempting to get CreationTime, LastAccessTime, LastWriteTime or Attributes.