## File::SetAttributes method


Ställer in de angivna attributen på den angivna filen.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| sökväg | const String\& | Sökvägen till filen vars attribut ska anges |
| fileAttributes | FileAttributes | En bitvis kombination av [FileAttributes](../../fileattributes/)-värden som representerar attributen att ange |

## Se även

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