NAnt SDK Documentation - v0.92 |

# ReadRegistryTask.GetHiveKey Method

Returns the key for a given registry hive.

[Visual Basic]
Protected Function GetHiveKey( _
ByVal hive As RegistryHive _
) As RegistryKey
[C#]
protected RegistryKey GetHiveKey(
RegistryHive hive
);

#### Parameters

hive
  The registry hive to return the key for.

#### Return Value

The key for a given registry hive.

#### See Also

ReadRegistryTask Class | NAnt.Win32.Tasks Namespace