New to Telerik UI for WinFormsStart a free 30-day trial

Base factory class for creating FileSystemInfoWrappers from FileSystemInfos.

Definition

Namespace:Telerik.WinControls.FileDialogs

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public abstract class FileSystemInfoWrapperFactoryBase

Inheritance: objectFileSystemInfoWrapperFactoryBase

Constructors

C#
protected FileSystemInfoWrapperFactoryBase()

Methods

Called when a file path no longer exists (for example when a file is moved, renamed or deleted).

C#
public abstract void CleanupPath(string filePath, DirectoryInfoWrapper parentWrapper, bool isRename = false)
Parameters:filePathstring

The path that no longer exists.

parentWrapperDirectoryInfoWrapper

The DirectoryInfoWrapper of the parent folder.

isRenamebool

Indicates whether the file is being renamed causing deleted event.

Returns a value indicating whether a DirectoryInfoWrapper will be created for the passed DirectoryInfo.

C#
protected virtual bool ShouldCreateRequestedInfo(DirectoryInfo directoryInfo)
Parameters:directoryInfoDirectoryInfoReturns:

bool

C#
public abstract bool TryGetConcreteFileSystemInfoWrapper(FileSystemInfo fileSystemInfo, out FileSystemInfoWrapper fileSystemInfoWrapper)
Parameters:fileSystemInfoFileSystemInfofileSystemInfoWrapperFileSystemInfoWrapperReturns:

bool

Returns the DirectoryInfoWrapper for a specific DirectoryInfo

C#
public abstract bool TryGetDirectoryInfoWrapper(DirectoryInfo directoryInfo, out DirectoryInfoWrapper directoryInfoWrapper)
Parameters:directoryInfoDirectoryInfodirectoryInfoWrapperDirectoryInfoWrapperReturns:

bool

Events

Occurs when a child file or folder is deleted/removed.

C#
public event EventHandler<ChildFileDeletedEventArgs> ChildFileDeleted

Occurs when DirectoryInfo wrapper is about to be created. User can cancel the creation by handling the event and setting the DirectoryRequestingEventArgs 's Cancel property to true.

C#
public event EventHandler<DirectoryRequestingEventArgs> DirectoryRequesting

Occurs when creating a FileSystemInfo wrapper or DirectoryInfo wrapper produces an exception.

C#
public event EventHandler<FileBrowserExceptionRaisedEventArgs> ExceptionRaised