## File::SetAttributes method


为指定文件设置指定的属性。

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| 路径 | const String\& | 要设置属性的文件的路径 |
| fileAttributes | FileAttributes | 一个表示要设置属性的 [FileAttributes](../../fileattributes/) 值的位掩码组合 |

## 另见

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