======Метод File.SetAttributes(String, FileAttributes)====== Устанавливает заданные атрибуты [[developers:references:system.io.fileattributes|FileAttributes]] файла по заданному пути. * **Пространство имен:** [[developers:references:system.io|System.IO]] * **Сборка:** mscorlib (в mscorlib.dll) =====Синтаксис===== public static void SetAttributes(string path, FileAttributes fileAttributes) **Параметры** * //path// * Тип: [[developers:references:system.string|System.String]] * Путь к файлу. * //fileAttributes// * Тип: [[developers:references:system.io.fileattributes|System.IO.FileAttributes]] * Побитовое сочетание значений перечисления.