Return the a registry value from a Hive
Namespace:
Devolutions.UtilsAssembly: Devolutions.Utils (in Devolutions.Utils.dll)
Syntax
| Visual Basic |
|---|
Public Shared Function GetRegistryValue(Of T) ( _ hive As RegistryHive, _ key As String, _ value As String, _ kind As RegistryValueKind, _ <OutAttribute> ByRef data As T _ ) As Boolean |
| C# |
|---|
public static bool GetRegistryValue<T>( RegistryHive hive, string key, string value, RegistryValueKind kind, out T data ) |
Parameters
- hive
- Type: Microsoft.Win32..::..RegistryHive
- key
- Type: System..::..String
- value
- Type: System..::..String
- kind
- Type: Microsoft.Win32..::..RegistryValueKind
- data
- Type: T%
Type Parameters
- T