## 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.Page for C++](../../../)
