## File::SetAttributes method


Устанавливает указанные атрибуты для указанного файла.

```cpp
static void System::IO::File::SetAttributes(const String &path, FileAttributes fileAttributes)
```


| Параметр | Тип | Описание |
| --- | --- | --- |
| путь | const String\& | Путь к файлу, для которого необходимо установить атрибуты |
| fileAttributes | FileAttributes | Битовая комбинация значений [FileAttributes](../../fileattributes/) представляющая атрибуты для установки |

## См. также

* Class [String](../../../system/string/)
* Enum [FileAttributes](../../fileattributes/)
* Class [File](../)
* Namespace [System::IO](../../)
* Library [Aspose.PDF for C++](../../../)
