C# Класс System.IO.FileExtensions

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

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

Метод Описание
Rename ( this fileInfo, string newName, bool replace = true ) : bool

Renames the file to the specified name

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

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

Renames the file to the specified name
public static Rename ( this fileInfo, string newName, bool replace = true ) : bool
fileInfo this
newName string The new name of this file
replace bool Indicates wether to delete the new file path if it exists already
Результат bool