System.IO.FileInfo.IsReadOnly Property

Gets or sets a value that determines if the current file is read only.

Syntax

public bool IsReadOnly { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

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

When first called, System.IO.FileInfo calls FileSystemInfo.Refresh and caches information about the file. On subsequent calls, you must call FileSystemInfo.Refresh to get the latest copy of the information.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0