Xceed .NET Libraries Documentation
DoDelete Method (FileSystemItem)


Xceed.FileSystem Assembly > Xceed.FileSystem Namespace > FileSystemItem Class : DoDelete Method
A reference to a FileSystemEventsSession object which is responsible for raising all events that occur during the process.
Permanently deletes the physical item.
Syntax
'Declaration
 
Protected Friend MustOverride Sub DoDelete( _
   ByVal session As FileSystemEventsSession _
) 
'Usage
 
Dim instance As FileSystemItem
Dim session As FileSystemEventsSession
 
instance.DoDelete(session)
protected internal abstract void DoDelete( 
   FileSystemEventsSession session
)

Parameters

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

If this method is called for an AbstractFolder object, all children should have been previously deleted or the folder be empty or an exception should be thrown.

All metadata ( attributes, size, etc... ) associated with the FileSystemItem object should be reset to their default values after the item is deleted.

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