RegistryAccessErrorException
From Xojo Documentation
Class (inherits from RuntimeException)
This class is only available on the Windows platform. For cross-platform compatibility, use #If...#Endif with the Target... specifiers to make sure you will not attempt to use this class on an incompatible platform. |
The Registry items feature is Windows-only. This exception occurs if you try to use the RegistryItem class without proper access privileges, try to access a key that does not exist or try to use it in macOS or Linux.
Properties | |||
|
Methods | ||
|
Sample Code
Try
Var reg As New RegistryItem("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersions")
Catch e As RegistryAccessErrorException
// Error, perhaps path is invalid
End Try
Var reg As New RegistryItem("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersions")
Catch e As RegistryAccessErrorException
// Error, perhaps path is invalid
End Try
See Also
Exception, Try statements, RegistryItem class.