Home Cooker Classes Others Rice CookerGX
Classes  >  file  >  IsReadOnly
file class : IsReadOnly getter

Description

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

Syntax

fileInstance.IsReadOnly

Arguments

None

Return value

ClassDescription
boolValue that indicates whether the file is read only.

Sample code

//anyFile is a instance of file type.

bool readOnly = anyFile.IsReadOnly;

Notes

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

If the file is read only, return true. Otherwise, return false.

Links for reference

Copyright © Rice All rights reserved.