Click or drag to resize
FileInfoIsReadOnly Property
Gets or sets a value that determines if the current file is read only.

Namespace: Alphaleonis.Win32.Filesystem
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
public bool IsReadOnly { get; set; }

Property Value

Type: Boolean
if the current file is read only; otherwise, .
FileNotFoundExceptionThe file described by the current FileInfo object could not be found.
IOExceptionAn I/O error occurred while opening the file.

Use the IsReadOnly property to quickly determine or change whether the current file is read only.

When first called, FileInfo calls Refresh and caches information about the file.

On subsequent calls, you must call Refresh to get the latest copy of the information.

See Also