NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Directory.Refresh

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();

Exceptions

Exception Type Condition
ArgumentException The file is not found.
IOException A device such as a disk drive is not ready.

Remarks

To avoid caching outdated information, call Refresh before attempting to get CreationTime, LastAccessTime, LastWriteTime or Attributes.

See Also

Directory Class | Directory Members | System.IO Namespace