Home Notices Documents Classes Download Others Rice
Classes  >  file  >  IsReadOnly(bool)
file class : IsReadOnly(bool) setter

Description

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

Syntax

fileInstance.IsReadOnly = readOnly

Arguments

ClassNameDescription
boolreadOnlyValue 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.

If set true, the file is read only.

If set false, the file is not read only.

Links for reference

Copyright © Rice All rights reserved.