Home Notices Documents Classes Download Others Rice
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

1:

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

2:

bool readOnly = f.IsReadOnly;

Notes

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

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

Links for reference

Copyright © Rice All rights reserved.