## File::SetAttributes method


Sets the specified attributes on the specified file.

```cpp
static void System::IO::File::SetAttributes(const String &path, FileAttributes fileAttributes)
```


| Parameter | Type | Description |
| --- | --- | --- |
| path | const String\& | The path of the file on which the attributes to be set |
| fileAttributes | FileAttributes | A bitwise combination of [FileAttributes](../../fileattributes/) values representing the attributes to set |

## See Also

* Class [String](../../../system/string/)
* Enum [FileAttributes](../../fileattributes/)
* Class [File](../)
* Namespace [System::IO](../../)
* Library [Aspose.PDF for C++](../../../)
