UtilRegistryGetValueDataT(RegistryView, String, String, String, T, RegistryValueOptions) Method

Gets the data of a registry value.

Definition

Namespace: DevCase.Core.Windows.Registry
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static T GetValueData<T>(
	RegistryView view,
	string rootKeyName,
	string subKeyPath,
	string valueName,
	T defaultIfEmpty,
	RegistryValueOptions registryValueOptions = RegistryValueOptions.None
)

Parameters

view  RegistryView

[Missing <param name="view"/> documentation for "M:DevCase.Core.Windows.Registry.UtilRegistry.GetValueData``1(Microsoft.Win32.RegistryView,System.String,System.String,System.String,``0,Microsoft.Win32.RegistryValueOptions)"]

rootKeyName  String
The rootkey name.
subKeyPath  String
The subkey path.
valueName  String
The value name.
defaultIfEmpty  T
A default value to return if the data is empty.
registryValueOptions  RegistryValueOptions  (Optional)
The registry value options.

Type Parameters

T
The type.

Return Value

T
The value data.

Exceptions

ArgumentNullException rootKeyName or subKeyPath

See Also