ComponentSpace Registry Toolkit Class Library Reference

RegistryHelper.QueryValue Method 

Query the value returning the value data and value type.

[Visual Basic]
Public Shared Function QueryValue( _
   ByVal keyName As String, _
   ByVal valueName As String, _
   ByRef valueType As UInt32 _
) As Object
[C#]
public static object QueryValue(
   string keyName,
   string valueName,
   out uint valueType
);

Parameters

keyName
The key name.
valueName
The value name.
valueType
The returned value type.

Return Value

The value data object.

Remarks

For example, if the key name is HKEY_LOCAL_MACHINE\Software\Test and a string value named Test exists with a value of "this is a test" then a string object is returned and the returned value type is Win32.REG_SZ.

Exceptions

Exception Type Condition
RegistryToolkitException Thrown when the registry operation fails.

See Also

RegistryHelper Class | ComponentSpace.RegistryToolkit Namespace