Xceed .NET Libraries Documentation
DoRefresh Method (FileSystemItem)


Xceed.FileSystem Assembly > Xceed.FileSystem Namespace > FileSystemItem Class : DoRefresh Method
A reference to a FileSystemEventsSession object which is responsible for raising all events that occur during the process.
Re-reads the information from the physical item.
Syntax
'Declaration
 
Protected MustOverride Sub DoRefresh( _

   ByVal session As FileSystemEventsSession _

) 
'Usage
 
Dim instance As FileSystemItem

Dim session As FileSystemEventsSession

 

instance.DoRefresh(session)
protected abstract void DoRefresh( 

   FileSystemEventsSession session

)

Parameters

session
A reference to a FileSystemEventsSession object which is responsible for raising all events that occur during the process.
Remarks

When a FileSystemItem object's properties, such as Attributes or CreationDateTime, are first accessed, a snapshot of the underlying physical item's properties should be taken. This snapshot should not be automatically updated whenever the physical item's properties change.

Refresh should re-read the information from the physical item and updates the snapshot.

Refresh should be called before accessing a property, or the information returned could be outdated.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FileSystemItem Class
FileSystemItem Members