RegistryAccessErrorException

From Xojo Documentation

Revision as of 16:10, 27 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Class (inherits from RuntimeException)


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
ErrorNumber Message
Methods
Stack StackFrames

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

See Also

Exception, Try statements, RegistryItem class.