Microsoft.Win32.RegistryKey.GetValueKind Method

Retrieves the registry data type of the value associated with the specified name.

Syntax

[System.Runtime.InteropServices.ComVisible(false)]
public RegistryValueKind GetValueKind (string name)

Parameters

name
The name of the value whose registry data type is to be retrieved. This string is not case-sensitive.

Returns

The registry data type of the value associated with name.

Remarks

Note:

A registry key can have one value that is not associated with any name. When this unnamed value is displayed in the registry editor, the string "(Default)" appears instead of a name. To retrieve the registry data type of this unnamed value, specify either null or the empty string ("") for name.

For a description of supported registry data types, please see the Microsoft.Win32.RegistryValueKind enumeration.

Requirements

Namespace: Microsoft.Win32
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0