NAnt SDK Documentation - v0.92 |

# ReadRegistryTask.LookupRegKey Method

Returns the hive for a given key.

[Visual Basic]
Protected Function LookupRegKey( _
ByVal key As String, _
ByVal registries As RegistryHive() _
) As RegistryKey
[C#]
protected RegistryKey LookupRegKey(
string key,
RegistryHive[] registries
);

#### Parameters

key
registries

#### Return Value

The hive for a given key.

#### See Also

ReadRegistryTask Class | NAnt.Win32.Tasks Namespace