## FileInfo::set_IsReadOnly method


Sets or unsets the ReadOnly attribute on the file.

```cpp
void System::IO::FileInfo::set_IsReadOnly(bool value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | bool | True if the ReadOnly attribute has to be set, false if the ReadOnly attribute has to be unset |

## See Also

* Class [FileInfo](../)
* Namespace [System::IO](../../)
* Library [Aspose.PUB for C++](../../../)
