-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Simon Byrne edited this page Dec 3, 2016
·
3 revisions
-
C#/.NET
-
Perl Registry (deprecated)
Based on the C# model, provide 2 different interfaces:
-
WinReg.getvalue(keypath::AbstractString, name::AbstractString)
: queries the key/name, throws an error if it doesn't exist. -
WinReg.getvalue(keypath::AbstractString, name::AbstractString, default)
: queries the key/name, returnsdefault
if it doesn't exist -
WinReg.setvalue!(keypath, name, value)
: sets value at key, creating it if it doesn't exist
Uses RegKey <: Associative{String, Any}
objects
-
WinReg.openkey(keypath::AbstractString; permissions=..., create=true)
: returns aRegKey
object, usingpermissions
,create
determines whether to create it if it doesn't exist. -
WinReg.openkey(regkey::RegKey, subkey::AbstractString)
: opens a subkey ofkey
. WinReg.deletesubkey!(regkey::RegKey, subkey::AbstractString)
-
WinReg.iskey(keypath)
check ifkey
exists
For a given regkey::RegKey
:
-
regkey[name]
: queries key/value get(regkey, name, default)
-
keys(regkey)
gives aKeyIterator{RegKey}
, similar toEnvHash
.-
name in keys(regkey)
ifvalue
withname
is defined.
-