C# Класс Business.FileOperationAPIWrapper

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
SHFileOperation ( SHFILEOPSTRUCT &FileOp ) : int
deleteFile ( string path, FileOperationFlags flags ) : bool

Описание методов

DeleteCompletelySilent() публичный статический Метод

public static DeleteCompletelySilent ( string path ) : bool
path string
Результат bool

MoveToRecycleBin() публичный статический Метод

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
Результат void

Send() публичный статический Метод

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
Результат bool

Send() публичный статический Метод

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
Результат bool