NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

RegistryKey Class

This class is a registry encapsulation. To get an instance of a RegistryKey, use the static member getBaseKey, or use the Registry class's static members.

Object
   RegistryKey

[Visual Basic]
NotInheritable Public Class RegistryKey
[C#]
public sealed class RegistryKey
[C++]
public __gc __sealed class RegistryKey
[JScript]
public class RegistryKey

Remarks

[To be supplied.]

Requirements

Namespace: Microsoft.Win32

Assembly: mscorlib.dll

Example

[C++]
#import <mscorlib.dll>
using namespace Microsoft::Win32;

void main ()
{
RegistryKey * pRegKey = Registry::LocalMachine;
pRegKey = pRegKey->OpenSubKey(L"HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0");
Object *pValue = pRegKey->GetValue(L"VendorIdentifier");
Console::WriteLine(L"The central processor of this machine is: {0}.", pValue);
}

See Also

RegistryKey Members | Microsoft.Win32 Namespace