Home Cooker Classes Others Rice CookerGX
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

//anyFile is a instance of file type.

anyFile.IsReadOnly = true;

Notes

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

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.