OPC Studio User's Guide and Reference
IsReadOnly Property (IWritableFileInfo)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Extensions.FileProviders Namespace > IWritableFileInfo Interface : IsReadOnly Property
Gets a value that determines if the current file is read only.
Syntax
'Declaration
 
ReadOnly Property IsReadOnly As Boolean
'Usage
 
Dim instance As IWritableFileInfo
Dim value As Boolean
 
value = instance.IsReadOnly
bool IsReadOnly {get;}
property bool IsReadOnly {
   bool get();
}
Exceptions
ExceptionDescription

An attempt to access a file that does not exist on disk has failed.

This is an operation error that depends on factors external to your program, and thus cannot be always avoided. Your code must handle it appropriately.

An I/O error has occurred.

This is an operation error that depends on factors external to your program, and thus cannot be always avoided. Your code must handle it appropriately.

The operating system has denied access because of an I/O error or a specific type of security error.

This is an operation error that depends on factors external to your program, and thus cannot be always avoided. Your code must handle it appropriately.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also