C# Class Business.FileOperationAPIWrapper

Afficher le fichier Open project: mysteryx93/NaturalGroundingPlayer

Méthodes publiques

Méthode Description
DeleteCompletelySilent ( string path ) : bool
MoveToRecycleBin ( string path ) : void

Send file silently to recycle bin. Surpress dialog, surpress errors, delete if too large.

Send ( string path ) : bool

Send file to recycle bin. Display dialog, display warning if files are too big to fit (FOF_WANTNUKEWARNING)

Send ( string path, FileOperationFlags flags ) : bool

Send file to recycle bin

Private Methods

Méthode Description
SHFileOperation ( SHFILEOPSTRUCT &FileOp ) : int
deleteFile ( string path, FileOperationFlags flags ) : bool

Method Details

DeleteCompletelySilent() public static méthode

public static DeleteCompletelySilent ( string path ) : bool
path string
Résultat bool

MoveToRecycleBin() public static méthode

Send file silently to recycle bin. Surpress dialog, surpress errors, delete if too large.
public static MoveToRecycleBin ( string path ) : void
path string Location of directory or file to recycle
Résultat void

Send() public static méthode

Send file to recycle bin. Display dialog, display warning if files are too big to fit (FOF_WANTNUKEWARNING)
public static Send ( string path ) : bool
path string Location of directory or file to recycle
Résultat bool

Send() public static méthode

Send file to recycle bin
public static Send ( string path, FileOperationFlags flags ) : bool
path string Location of directory or file to recycle
flags FileOperationFlags FileOperationFlags to add in addition to FOF_ALLOWUNDO
Résultat bool