file class : IsReadOnly(bool) setter

Description

Sets a value that indicates whether the file is read only.

Syntax

fileInstance.IsReadOnly = value

Assigned value

ClassDescription
boolValue that indicates whether the file is read only.

Return value

None

Sample code

1:

file f = new file("c:\somewhere...");

2:

f.IsReadOnly = true;

Notes

It's a wrapper of the System.IO.FileInfo.IsReadOnly property.

Assigns true if you want to make the file read-only. Otherwise, assigns false.

Links for reference

Copyright © Cooker All rights reserved.